Circuit device, oscillator, electronic apparatus, and moving object

ABSTRACT

A circuit device includes a D/A converter, a comparator that compares a temperature detection voltage from a temperature sensor unit with a D/A conversion voltage from the D/A converter, and a processing circuit that executes a determination process based on a comparison result from the comparator, and obtains temperature detection data as a result of A/D conversion of the temperature detection voltage, in which, the processing circuit determines the temperature detection data so that a change in the temperature detection data at a second output timing following a first output timing with respect to the temperature detection data at the first output timing is equal to or less than k×LSB.

BACKGROUND

1. Technical Field

The present disclosure relates to a circuit device, an oscillator, anelectronic apparatus, and a moving object.

2. Related Art

In the related art, an A/D conversion circuit which performsanalog-digital conversion (hereinafter, referred to as A/D conversion)for converting an analog signal to digital data is widely known. Astypes of A/D conversion circuit, there are various types such as a flashtype, a successive comparison type, and a ΔΣ type. For example,JP-A-2011-223404 discloses a method of performing successive comparisontype A/D conversion.

There are various circuits using temperature detection data which is aresult of A/D conversion of a temperature detection signal (analogsignal) from a temperature sensor unit. For example, in the related art,a temperature compensated crystal oscillator (TCXO) is known. The TCXOis used as, for example, a reference signal source or the like inportable communication terminals, GPS related apparatuses, wearableapparatuses, on-vehicle apparatuses, and the like. A technique disclosedin JP-A-64-82809 is known as related art for a DTCXO which is a digitaltype temperature compensated oscillator.

If A/D conversion result data as a result of A/D conversion greatlychanges in a short period of time, a problem may occur. For example, ina digital type oscillator such as a DTCXO, if a frequency drift of anoscillation frequency caused by a temperature change exceeds, forexample, an allowable frequency drift range, it has been proved thatvarious problems occur in an apparatus using an oscillation signal ofthe oscillator. In other words, it is necessary to suppress a change intemperature detection data which is A/D conversion result data in orderto reduce the frequency drift.

It has been proved that a temperature change in a single A/D conversionperiod under a natural condition is not great. In other words, in a casewhere temperature detection data at a predetermined output timing isobtained, a change width of temperature detection data at the nextoutput timing may be restricted to a narrow range to some extent.

However, in the technique of the related art disclosed inJP-A-2011-223404 or JP-A-64-82809, none of the above-described contentis taken into consideration, and inefficient A/D conversion is performedas a result of permitting a great change in temperature detection dataor not taking into consideration the natural condition.

SUMMARY

An advantage of some aspects of the present disclosure is to provide acircuit device, an oscillator, an electronic apparatus, and a movingobject, capable of efficiently performing A/D conversion by minimizingdefects caused by a rapid change in temperature detection data.

An aspect of the present disclosure relates to a circuit deviceincluding a D/A converter; a comparison portion that compares atemperature detection voltage from a temperature sensor unit with a D/Aconversion voltage from the D/A converter; and a processing portion thatperforms a determination process on the basis of a comparison resultfrom the comparison portion, and obtains temperature detection data as aresult of A/D conversion of the temperature detection voltage on thebasis of the determination process, in which, in a case where theminimum resolution of data in A/D conversion is indicated by LSB, thetemperature detection data at a first output timing is set as firsttemperature detection data, and the temperature detection data at asecond output timing following the first output timing is set as secondtemperature detection data, the processing portion obtains thetemperature detection data so that a change in the second temperaturedetection data with respect to the first temperature detection data isequal to or less than k×LSB (where k is an integer satisfying k<j; and jis an integer representing a resolution in A/D conversion).

In the aspect of the present disclosure, a value which changes within arange of k×LSB or less from temperature detection data at the previousoutput timing is determined to be temperature detection data at apredetermined output timing. In the above-described way, it is possibleto suppress a rapid change in temperature detection data and thus tominimize a defect caused by the change.

In the aspect of the present disclosure, the circuit device may furtherinclude a register portion that stores result data includingintermediate result data or final result data. Here, the processingportion may perform the determination process on the basis of acomparison result from the comparison portion, and performs an updateprocess on the result data on the basis of the determination process,and the D/A converter may perform D/A conversion on the result datahaving undergone the update process.

With this configuration, result data is updated by performing adetermination process based on a comparison result, and thus it ispossible to appropriately update temperature detection data.

In the aspect of the present disclosure, the comparison portion maycompare the D/A conversion voltage into which the D/A converter convertsprevious the result data with the temperature detection voltage, and theprocessing portion may perform the determination process on the basis ofthe comparison result, and performs the update process of updating theresult data in a range of k×LSB or less.

With this configuration, the present result data can be obtained on thebasis of comparison between a D/A conversion voltage of the previousresult data with a temperature detection voltage.

In the aspect of the present disclosure, the comparison portion maycompare the D/A conversion voltage into which the D/A converter convertsthe previous final result data corresponding to the temperaturedetection data at the previous output timing with the temperaturedetection voltage so as to output a first comparison result; thecomparison portion may compare the D/A conversion voltage into which theD/A converter converts data which is obtained by updating the previousfinal result data in the range of k×LSB or less, with the temperaturedetection voltage, so as to output a second comparison result; and theprocessing portion may perform the determination process based on thefirst comparison result and the second comparison result, and performthe update process of updating the previous final result data in therange of k×LSB or less on the basis of the determination process and ofdetermining the updated data to be the present final result data.

With this configuration, it is possible to determine a value whichchanges within a range of k×LSB or less from the previous final resultdata to be the present final result data (temperature detection data) onthe basis of a plurality of comparison results.

In the aspect of the present disclosure, the comparison portion maycompare the D/A conversion voltage into which the D/A converter convertsthe previous final result data corresponding to the temperaturedetection data at the previous output timing with the temperaturedetection voltage so as to output a first comparison result; thecomparison portion compares the D/A conversion voltage into which theD/A converter converts second data which is obtained by adding 1LSB tothe previous final result data, with the temperature detection voltage,so as to output a second comparison result; in a case where a result ofthe determination process based on the first comparison result is an updetermination in which the temperature detection voltage is higher thanthe D/A conversion voltage, and a result of the determination processbased on the second comparison result is also the up determination, theprocessing portion determines the second data to be the present finalresult data; and, in a case where a result of the determination processbased on the first comparison result is a down determination in whichthe temperature detection voltage is lower than the D/A conversionvoltage, and a result of the determination process based on the secondcomparison result is also the down determination, the processing portiondetermines data obtained by subtracting 1LSB from the previous finalresult data, to be the present final result data.

With this configuration, it is possible to determine a value whichchanges by ±1LSB from the previous final result data to be the presentfinal result data (temperature detection data) on the basis of twocomparison results.

In the aspect of the present disclosure, the comparison portion maycompare the D/A conversion voltage into which the D/A converter convertsthe previous final result data corresponding to the temperaturedetection data at the previous output timing is compared with thetemperature detection voltage so as to output a first comparison result;the comparison portion may compare the D/A conversion voltage into whichthe D/A converter converts second data which is obtained by subtracting1LSB from the previous final result data, with the temperature detectionvoltage, so as to output a second comparison result; in a case where aresult of the determination process based on the first comparison resultis an up determination in which the temperature detection voltage ishigher than the D/A conversion voltage, and a result of thedetermination process based on the second comparison result is also theup determination, the processing portion determines data obtained byadding 1LSB to the previous final result data, to be the present finalresult data; and, in a case where a result of the determination processbased on the first comparison result is a down determination in whichthe temperature detection voltage is lower than the D/A conversionvoltage, and a result of the determination process based on the secondcomparison result is also the down determination, the processing portiondetermines the second data to be the present final result data.

With this configuration, it is possible to determine a value whichchanges by ±1LSB from the previous final result data to be the presentfinal result data (temperature detection data) on the basis of twocomparison results.

In the aspect of the present disclosure, in a case where one of a resultof the determination process based on the first comparison result and aresult of the determination process based on the second comparisonresult is the up determination, and the other thereof is the downdetermination, the processing portion may determine the previous finalresult data to be the present final result data.

With this configuration, it is possible to determine a value of theprevious final result data to be the present final result data(temperature detection data) on the basis of two comparison results.

In the aspect of the present disclosure, an A/D conversion period may beset so that a change amount of the temperature detection voltage in asingle A/D conversion period is equal to or less than a voltagecorresponding to k×LSB.

With this configuration, it is possible to set an A/D conversion periodhaving an appropriate length on the basis of an expected change amountof a temperature detection voltage (in a broad sense, an expectedtemperature change).

In the aspect of the present disclosure, the circuit device may furtherinclude an A/D conversion unit that includes the D/A converter, thecomparison portion, and the processing portion; a digital signalprocessing unit that performs a temperature compensation process on anoscillation frequency on the basis of the temperature detection data, soas to output frequency control data of the oscillation frequency; and anoscillation signal generation circuit that generates an oscillationsignal having the oscillation frequency set by the frequency controldata by using the frequency control data from the digital signalprocessing unit and a resonator.

With this configuration, it is possible to implement a circuit such as aDTCXO which performs a temperature compensation process based on atemperature detection voltage so as to output an oscillation signal.

Another aspect of the present disclosure relates to an oscillatorincluding any of the circuit devices described above; and the resonator.

Still another aspect of the present disclosure relates to an electronicapparatus including any one of the circuit devices described above.

Yet another aspect of the present disclosure relates to a moving objectincluding any one of the circuit devices described above.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure will be described with reference to theaccompanying drawings, wherein like numbers reference like elements.

FIGS. 1A, 1B and 1C are diagrams for explaining advantages and problemsof a DTCXO.

FIG. 2 illustrates a fundamental configuration example of a circuitdevice according to the present embodiment.

FIG. 3 is a diagram for explaining a problem occurring due to update tok×LSB or less.

FIG. 4 illustrates a configuration example of a circuit device accordingto the present embodiment.

FIG. 5 is a diagram illustrating examples of temperature characteristicsof a resonator and variations thereof.

FIG. 6 is a diagram for explaining a temperature compensation process.

FIGS. 7A, 7B and 7C illustrate configuration examples of a comparisonportion.

FIG. 8 is a diagram illustrating examples of waveforms generated by thecomparison portion.

FIG. 9 is a diagram for explaining a communication error caused by afrequency drift.

FIG. 10 is a flowchart for explaining a process in a normal operationmode.

FIGS. 11A and 11B illustrate examples of a relationship between ananalog signal and digital data.

FIG. 12 illustrates another configuration example of the comparisonportion.

FIGS. 13A and 13B illustrate examples of setting a determination periodin a high speed mode.

FIG. 14A is a flowchart for explaining a process in the high speed mode,and FIGS. 14B and 14C illustrate specific examples of a determinationprocess.

FIG. 15 illustrates a specific example of transition of result data inthe high speed mode.

FIG. 16 is a diagram for explaining a technique of minimizing frequencyhopping or the like by using configurations other than the A/Dconversion unit.

FIGS. 17A and 17B are diagrams for explaining a technique of minimizingfrequency hopping or the like by using configurations other than the A/Dconversion unit.

FIG. 18 is a diagram for explaining frequency hopping.

FIGS. 19A and 19B are diagrams illustrating specific configurationexamples of a temperature sensor unit, and FIG. 19C is a diagram forexplaining temperature characteristics.

FIG. 20 illustrates a specific configuration example of an oscillationcircuit.

FIG. 21 illustrates a configuration example of a circuit deviceaccording to a modification example of the present embodiment.

FIGS. 22A, 22B and 22C respectively illustrate configuration examples ofan oscillator, an electronic apparatus, and a moving object.

DESCRIPTION OF EXEMPLARY EMBODIMENTS

Hereinafter, preferred embodiments of the present disclosure will bedescribed in detail. The present embodiment described below is notintended to improperly limit the content of the present disclosuredisclosed in the appended claims, and all constituent elements describedin the present embodiment are not essential as solving means of thepresent disclosure.

1. Technique of Present Embodiment 1.1 Summary of Normal Operation Mode

First, a technique of the present embodiment will be described. There isa circuit device which acquires digital data by A/D-converting apredetermined analog signal, particularly, a circuit device whichperforms various processes, for example, in a digital signal processingunit (for example, a digital signal processor (DSP)) on the basis of thedigital data. As an example, there is a DTCXO which performs atemperature compensation process of a frequency through digitalprocessing on the basis of temperature detection data which is an A/Dconversion result of a temperature detection voltage from a temperaturesensor unit.

There are various requests related to A/D conversion in such a circuitdevice. For example, there is a case where a change in a value of A/Dconversion result data is required to be small to some extent. In a casewhere a value of the A/D conversion result data greatly changes in ashort period, for example, in a case where a change in values of A/Dconversion result data at a predetermined output timing and A/Dconversion result data at the next output timing is too great, a defectmay occur due to the change.

For example, in a digital type oscillator such as a DTCXO, there is aproblem in that a communication error or the like occurs in acommunication device provided with the oscillator due to a drift of anoscillation frequency. In the digital type oscillator, a temperaturedetection voltage from a temperature sensor unit is A/D-converted, atemperature compensation process is performed on frequency control dataon the basis of obtained temperature detection data, and an oscillationsignal is generated on the basis of the frequency control data. In thiscase, if a value of the frequency control data greatly changes due to atemperature change, it has been proved that a problem of frequencyhopping occurs due to this. If the frequency hopping occurs, a problemoccurs that, for example, GPS locking in a GPS related communicationdevice is canceled. In order to minimize the occurrence of such aproblem, it is necessary to reduce a change in temperature detectiondata used for the temperature compensation process. As will be describedlater, frequency hopping may be minimized through processing in portions(for example, processing in a digital signal processing unit) other thanan A/D conversion portion, and such techniques may be used incombination of each other in the circuit device of the presentembodiment.

A circuit device using A/D conversion result data, particularly,temperature detection data DTD into which a temperature detectionvoltage VTD A/D-converted is not limited to the DTCXO. For example, itis known that an output from a gyro sensor has temperaturecharacteristics, and an error occurs in output data due to thetemperature characteristics. Thus, a process (for example, a zero pointcorrection process) of compensating for the temperature characteristicsof the output from the gyro sensor may be performed on the basis of thetemperature detection data DTD, and a circuit device in the presentembodiment may be used for the gyro sensor.

Hereinafter, a brief description will be made of a problem of afrequency drift which may occur in a case where a digital type DTCXO isemployed as a TCXO. In the TCXO which is a temperature compensatedoscillator, there are requests for improvement of frequency accuracy andlow power consumption. For example, in a wearable apparatus such as aGPS-built wristwatch or an apparatus measuring biological informationsuch as a pulse wave, it is necessary to increase a continuous operationtime using a battery. Thus, it is required for the TCXO as a referencesignal source to secure frequency accuracy and also to consume lesspower.

Various methods have been proposed as communication methods between acommunication terminal and a base station. For example, in a timedivision duplex (TDD) method, each apparatus transmits data in anallocated time slot. A guard time is set between time slots (an uplinkslot and a downlink slot), and thus overlapping between time slots isprevented. In a communication system of the next generation, a techniqueis proposed in which data communication is performed in the TDD methodby using a single frequency bandwidth (for example, 50 GHz).

However, in a case where such a TDD method is employed, it is necessaryfor each apparatus to perform time synchronization, and thus an accurateabsolute time is required to be measured. In order to realize such arequest, for example, there may be a technique in which an atomic clock(atomic oscillator) is provided in each apparatus as a reference signalsource, but a problem such as causing high cost or a large-sizedapparatus occurs.

In a case where an ATCXO (analog type TCXO) is used as a referencesignal source, if frequency accuracy is to be increased, as illustratedin FIG. 1A, a chip size of a circuit device increases, and thus it ishard to realize low cost or low power consumption. On the other hand,the DTCXO has an advantage in that frequency accuracy can be increasedwithout increasing a chip size of a circuit device as illustrated inFIG. 1A.

However, since there is the above-described problem such as a frequencydrift, various circuit methods have been proposed for a digital typeoscillator such as the DTCXO, but the digital type oscillator isscarcely employed as a reference signal source of an actual product inwhich the communication error is problematic, and the present situationis that an analog type oscillator such as an ATCXO is employed.

For example, FIG. 1B is a diagram illustrating a frequency drift in theATCXO. In the ATCXO, as illustrated in FIG. 1B, even in a case where atemperature changes over time, a frequency drift thereof enters anallowable frequency drift (allowable frequency error) range (±FD). InFIG. 1B, the frequency drift (frequency error) is indicated by aproportion (frequency accuracy, ppb) with respect to a nominaloscillation frequency (for example, about 16 MHz).

For example, in order not to cause a communication error, a frequencydrift is required to be included in the allowable frequency drift range(±FD) within a predetermined period TP (for example, 20 msec). Here, theFD is, for example, about several ppb.

On the other hand, FIG. 1C is a diagram illustrating a frequency driftin a case where a DTCXO of the related art is used. As illustrated inFIG. 1C, in the DTCXO of the related art, frequency hopping occurs inwhich a frequency drift thereof does not enter the allowable frequencydrift range and exceeds the range. Thus, a communication error(unlocking of a GPS) occurs due to the frequency hopping, and thishinders the DTCXO from being employed as a reference signal source of anactual product.

Therefore, the present applicant proposes a technique of suppressing achange in A/D conversion result data. Specifically, a circuit deviceaccording to the present embodiment includes, as illustrated in FIG. 2,a D/A converter 26; a comparison portion 27 which compares temperaturedetection voltage VTD from a temperature sensor unit 10 with D/Aconversion voltage VDAC from the D/A converter 26; and a processingportion 23 which performs a determination process on the basis of acomparison result from the comparison portion 27, and obtainstemperature detection data DTD as a result of A/D conversion of thetemperature detection voltage VTD on the basis of the determinationprocess. In a case where the minimum resolution of data in A/Dconversion is indicated by LSB, the temperature detection data DTD at afirst output timing is set as first temperature detection data, and thetemperature detection data DID at a second output timing following thefirst output timing is set as second temperature detection data, theprocessing portion 23 obtains the temperature detection data DTD so thata change in the second temperature detection data with respect to thefirst temperature detection data is equal to or less than k×LSB (where kis an integer satisfying k<j; and j is an integer representing aresolution in A/D conversion).

The output timing here indicates a timing at which a single item oftemperature detection data is output, and, for example, in a case whereA/D conversion is performed in 15 bits, the output timing indicates atiming at which A/D conversion result data with 15-bit accuracy isoutput. As will be described later in detail, in the present embodiment,A/D conversion is performed according to a method corresponding to asuccessive comparison method in which a plurality of comparisonprocesses are performed by using temporary values (intermediate resultdata), and A/D conversion result data (final result data=temperaturedetection data) with 15-bit accuracy is obtained on the basis of resultsof the plurality of comparison processes. In other words, in order tooutput a single item of temperature detection data, a single item or aplurality of items of intermediate result data are output as results ofa plurality of comparison processes. An output timing of theintermediate result data may include an output timing in the A/Dconversion process in a broad sense, but, the “output timing” hereindicates an output timing of only final A/D conversion result data(temperature detection data with 15-bit accuracy), and does not indicatean output timing of the intermediate result data.

The integer j indicating a resolution in A/D conversion is a value whichdepends on the number of bits of A/D conversion result data, and, in acase where the number of bits is p, j may be 2^(p).

According to the technique of the present embodiment, a change in thetemperature detection data DTD at two timings adjacent to each other isrestricted to k×LSB or less. Since LSB here indicates the minimumresolution of data in the A/D conversion, for example, in a case where atemperature range from T1° C. to T2° C. (>T1) is expressed by p-bitdigital data, a change in 1LSB represents a change in temperaturecorresponding to (T2−T1)/2^(p)° C. In a case where this condition is notprovided, temperature detection data may change by a maximum of 2^(p)(=j) LSB. The change of 2^(p)LSB corresponds to a case where temperaturedetection data at the first timing becomes an expected minimum value(maximum value), and temperature detection data at the second timingbecomes an expected maximum value (minimum value).

Consequently, in the example of the DTCXO, a change in the temperaturedetection data is suppressed, and thus there is a high probability thatfrequency hopping may also enter the allowable frequency drift range.Also in examples other than the DTCXO, a change in the temperaturedetection data is suppressed, and thus it is possible to reduce theoccurrence of defects.

In the present embodiment, it is assumed that the temperature detectiondata DTD is output by performing A/D conversion on the temperaturedetection voltage VTD. In this case, there is a rational reason foremployment of the technique of the present embodiment in suppression ofa change in the temperature detection data DTD. It is known that atemperature change (a change in the environmental temperature) under anatural condition is not great, and, for example, a temperature changeof about 0.28° C./sec at the maximum may be taken into consideration.Thus, if a rate of A/D conversion is 2K samples/sec, a temperaturechange per A/D conversion period, that is, an expected maximum changeamount of temperature detection data between a certain output timing andthe next output timing is 0.14 m° C./sample.

Here, if a temperature range taken into consideration in the circuitdevice is 125° C. (for example, T1=−40° C., and 12=85° C.), and p is 15,a temperature change per LSB is 125/2′⁵≅4 m° C./LSB. In other words, ascan be seen from comparison between 0.14 m° C./sample and 4 m° C./LSB,it is sufficient to assume a temperature change corresponding to whetheror not a value of 1LSB changes while A/D conversion result data isoutput for thirty times under the natural condition.

As in the technique of the present embodiment, in a case where a changein the temperature detection data DTD which is an output is suppressed,if a difference between an actual temperature and the temperaturedetection data DTD occurs, this is problematic. For example, in a casewhere the temperature detection voltage VTD which is an analog signalgreatly changes (specifically, the temperature detection data moregreatly changes than a voltage value corresponding to k×LSB), thetemperature detection data DTD which is output digital data does nottrack the change (the temperature detection data changes by only k×LSB),and thus a difference between an actual temperature and the temperaturedetection data DTD occurs. However, in an example in which a change rateand the number of bits are set to the above-described values under thenatural condition, an actual temperature change between adjacent outputtimings is less than 1LSB. Thus, even if a change for the temperaturedetection data DTD at the previous output timing is restricted to k×LSB(in this example, k=1), it may be considered that there is no differencebetween an actual temperature and the temperature detection data DTD,and thus appropriate A/D conversion can be performed.

A change in an environmental temperature under the natural condition isdefined as a change per unit time (for example, 1 second or 10 seconds)as described above. Thus, a temperature change expected between outputtimings adjacent to each other occurs according to a length between theoutput timings adjacent to each other, that is, an A/D conversionperiod. If the A/D conversion period is long, an expected temperaturechange increases, and, if the A/D conversion period is short, anexpected temperature change decreases.

Therefore, in the present embodiment, an A/D conversion period may beset so that a voltage change amount of the temperature detection voltageVTD in a single A/D conversion period is equal to or less than a voltagecorresponding to k×LSB. If such setting is performed, a temperaturechange (actually, a change amount of the temperature detection voltageVTD due to the change) is equal to or less than k×LSB (actually, equalto or less than a D/A conversion voltage corresponding to k×LSB), andthus it is possible to minimize a difference from an actual temperatureeven if a change in the temperature detection data DTD is restricted tok×LSB or less.

Here, as described above, a temperature change is defined by using ° C.(or Kelvin) or the like, and thus it is important to understand acorrespondence relationship between 1LSB and ° C. For example, in a casewhere the number of bits (the above-described p) in A/D conversion isreduced, or in a case where a temperature range (125° C. in theabove-described example) taken into consideration in the circuit deviceis widened, if digital data changes by 1LSB, a temperature changeexpressed by the digital data increases.

If it is taken into consideration that only a condition such as theoccurrence of a temperature change corresponding to a change inenvironmental temperature equal to or less than k×LSB under the naturalcondition is satisfied, it may appear to be preferable that atemperature per LSB is increased (p is reduced, or a temperature rangeis widened). However, the original object is to minimize a defect causedby frequency hopping or the like by suppressing a change in A/Dconversion result data. In other words, even if a change in A/Dconversion result data is restricted to k×LSB or less, if a temperaturecorresponding to k×LSB is high, a great temperature change is allowed asa result, and thus this is not proper.

Therefore, in the present embodiment, an expected temperature range oran expected number of bits in A/D conversion in the circuit device maybe set from the viewpoint of minimizing frequency hopping, an A/Dconversion period may be set on the basis of the set condition so that atemperature change corresponding to a temperature change less than k×LSBunder the natural condition occurs.

A change in a value is restricted to k×LSB or less, and thus it ispossible to perform A/D conversion efficiently (at a high speed). Intypical p-bit A/D conversion, all values of 2^(p) become candidates ateach output timing, and thus conversion is required to be performed sothat all of the values of 2^(p) can be output. For example, in generalsuccessive comparison type A/D conversion, a value of each bit of p bitsis determined one by one, and thus p comparison processes are requiredto be performed. In relation to this fact, in the technique of thepresent embodiment, only a value (change of 0) which does not change,and values of ±1LSB, ±2LSB, . . . , and ±k×LSB with respect to thetemperature detection data DTD at the previous output timing may be usedas candidates. Particularly, if k=1, only three values including achange of 0 and ±1LSB may be taken into consideration as candidates, andthus it is possible to simplify processing required in A/D conversion.Specifically, it is possible to reduce the number of comparisonprocesses in the comparison portion 27, or the number of analog signalgeneration processes (D/A conversion processes) used for the comparisonprocesses.

In other words, according to the technique of the present embodiment, itis possible to achieve two effects, that is, minimization of defectscaused by a rapid change in A/D conversion result data, such asfrequency hopping, and realization of an efficient A/D conversionprocess, and also to minimize a difference between a real temperatureand the temperature detection data DTD even if the A/D conversion isperformed. Hereinafter, a mode for performing the above-described A/Dconversion is referred to as a normal operation mode so as to bedifferentiated from a high speed mode which will be described later.

1.2 Outline of High Speed Mode

As an optional configuration, in the present embodiment, A/D conversionmay be performed in a mode which is different from the above-describednormal operation mode. As described above, if a temperature change istaken into consideration under the natural condition, the normaloperation mode in which a change in the temperature detection data DTDis restricted to k×LSB or less can be said to be a rational method.However, this is based on appropriate temperature detection data DTDmatching an actual temperature (temperature detection voltage VTD) beingobtained at a predetermined output timing. For example, when the circuitdevice is activated or the like, the previous temperature detection dataDTD is not acquired. Thus, as an initial value, a certain value, forexample, an intermediate value such as “100000000000000” of 15 bits isset, and the initial value has no relation to an actual temperature.

Thus, if the normal operation mode is started from the initial value,even in a case where an actual temperature is greatly different from theinitial value, the output temperature detection data DTD changes by onlyk×LSB for each output, and thus a lot of time is necessary until anoutput is stabilized.

FIG. 3 illustrates a temporal change example of the temperaturedetection data DTD in this case. In FIG. 3, a longitudinal axisexpresses the temperature detection data DTD, and a transverse axisexpresses time. DTDA indicates an initial value of the temperaturedetection data DTD, and DTDB indicates a digital value corresponding toan actual temperature. As in general successive comparison type A/Dconversion, in a method of obtaining all values of p bits every time,even if a difference between an initial value and an actual temperatureis great, temperature detection data corresponding to the actualtemperature may be obtained at the next output timing. However, in thenormal operation mode of the present embodiment, a change with respectto the previous output is restricted to k×LSB or less. Thus, asillustrated in FIG. 3, even if a difference between DTDA and DTDB isgreat, the temperature detection data DTD changes stepwise by onlyk×LSB. As a result, it takes a long time for the temperature detectiondata DTD to track the actual temperature. For example, in a case wherethe above-described intermediate value is used as an initial value, anddata corresponding to the actual temperature is a value represent by“111111111111111” or “000000000000000”, the actual temperature finallymatches the temperature detection data DTD through 2′¹ times of outputsif k=1.

Specifically, time T required for stabilization is 10 seconds or more inthe worst case depending on setting of an initial value or a length ofan A/D conversion period. Since the temperature detection data DTD doesnot reflect an accurate temperature during that time, there is a problemin that a subsequent process, for example, a temperature compensationprocess in the DTCXO is not accurately performed. Particularly, thisproblem is focused since there is an increasing request for faststabilization of an output after activation.

For example, in a case where the DTCXO is used for communication of amobile phone, an output frequency is required to be stabilized within 2msec from activation. For this, the temperature detection data DTD fortemperature compensation has to be set to a highly accurate value in thetime shorter than 2 msec at worst, and thus the time such as 10 secondscannot be allowed.

In consideration of the above-described facts, in the presentembodiment, A/D conversion may be performed in a mode which is differentfrom the normal operation mode. Specifically, A/D conversion isperformed so that an initial value is obtained according to a first A/Dconversion method in the activation period, and A/D conversion isperformed by using the initial value according to a second A/Dconversion method after the activation period is finished. Here, thesecond A/D conversion method is the normal operation mode, and the firstA/D conversion method may be a mode having a high tracking property foran actual temperature.

For example, a first mode may employ general various A/D conversionmethods. General A/D conversion methods such as a successive comparisontype, a ΔΣ type, or a flash type does not have restriction in a changewidth with respect to the previous output, and thus the temperaturedetection data DTD matching an actual temperature can be output as aninitial value. If an initial value matching an actual temperature can bedetermined, subsequently using the normal operation mode has no problemas described above.

However, in a stricter condition, for example, in a case where thehighly accurate temperature detection data DTD is required to be outputin a period shorter than 2 msec as in the above-described mobile phone,the general method may be insufficient. For example, the ΔΣ type A/Dconversion uses an integral circuit, and thus it is hard to output asignal at a high speed. The flash type A/D conversion realizes highspeed, but as the number of bits increases, a circuit scale alsoincreases, and thus the flash type A/D conversion is not proper, forexample, in a case where 10 bits are exceeded. In the successivecomparison type conversion, since comparison processes corresponding tothe number of times corresponding to the number of bits are required tobe performed, for example, if 15 comparison processes are performed at2K samples/sec, 7.5 msec is required until an output is obtained, andthus the above-described request is not satisfied.

In a case of the successive comparison type conversion, time requiredfor a comparison process per bit is reduced, and thus it is possible toreduce time required to obtain an output. However, it is known that, iftime for a comparison process is reduced, determination accuracy islowered. In an example of the comparison portion 27 using a choppercircuit which will be described later with reference to FIG. 7A or thelike, since time required to turn off a switch Si and to turn onswitches S2 and S3 so as to accumulate electric charge corresponding tothe temperature detection voltage VTD in a capacitor C (a sample mode;A1 or A5 in FIG. 8), and time required to turn on the switch S1 and toturn off the switches S2 and S3 so as to output a relationship betweenthe accumulated electric charge and the D/A conversion voltage VDAC (acomparator mode; A2 or A6 in FIG. 8) are respectively reduced, a resultof a comparison process is output before a circuit state is stabilized,and thus accuracy is lowered.

On the basis of the above description, in the present embodiment, a modein which a determination process on A/D conversion result data on a mostsignificant bit (MSB) side is performed in a first determination period,and a determination process on A/D conversion result data on a leastsignificant bit (LSB) side is performed in a second determination periodlonger than the first determination period may be the first mode. Here,the “MSB side” and the “LSB side” may be variously defined, but, the MSBside may be a bit range of a single bit or a plurality of bits closer toa most significant bit (MSB), and the LSB side may be a bit range of asingle bit or a plurality of bits closer to a least significant bit(LSB) than the MSB side. In a narrow sense, the MSB side is a single bitor a plurality of bits including the MSB, and the LSB side is a singlebit or a plurality of bits including the LSB.

Hereinafter, the first mode in the above-described way is referred to asa high speed mode. Data on the MSB side indicates a great value, andthus a difference between an analog signal (voltage value) correspondingto a case where a bit is 0 and an analog signal corresponding to a casewhere a bit is 1 is relatively great. Conversely, data on the LSB sideindicates a small value, and thus a difference between an analog signalcorresponding to a case where a bit is 0 and an analog signalcorresponding to a case where a bit is 1 is relatively small.

In other words, a probability of determination errors can be reducedeven if a rough comparison process is performed in the MSB side comparedwith the LSB side. A period of a determination process on the MSB sideis relatively shortened by taking into consideration this fact, and thusit is possible to reduce time required for A/D conversion performedonce. There may be various specific numerical examples, and, in anexample which will be described later with reference to FIGS. 13A and13B, A/D conversion result data can be output in the time required ofabout 1.5 msec.

Hereinafter, the present embodiment will be described in detail. First,a configuration example of the circuit device according to the presentembodiment will be described. As will be described later with referenceto FIG. 4, a configuration example of a circuit device used in a digitaltype oscillator such as a DTCXO will be described, but a circuit deviceaccording to the present embodiment is not limited thereto. Then, eachunit in FIG. 4 will be described in detail. Specifically, as specifictechniques of A/D conversion, the normal operation mode and the highspeed mode will be described. A digital signal processing unit (DSP), aD/A conversion circuit, a temperature sensor unit, an oscillationcircuit, and the like will be described. A description will be made of atechnique of minimizing frequency hopping of the DTCXO throughprocessing in the digital signal processing unit. Thereafter, adescription will be made of several modification examples, and examplesof an electronic apparatus and the like including the circuit device ofthe present embodiment.

2. Configuration

FIG. 4 illustrates a configuration example of the circuit device of thepresent embodiment. The circuit device is a circuit device(semiconductor chip) implementing a digital type oscillator such as aDTCXO or an OCXO. For example, the circuit device and a resonator XTALare stored in a package, and thus the digital type oscillator isimplemented.

The circuit device illustrated in FIG. 4 includes the A/D conversionunit 20, the digital signal processing unit 50, and an oscillationsignal generation circuit 140. A configuration of each unit of thecircuit device illustrated in FIG. 2 is included in, for example, theA/D conversion unit 20. The circuit device may include the temperaturesensor unit 10 and a buffer circuit 160. A configuration of the circuitdevice is not limited to the configuration illustrated in FIG. 4, andmay be variously modified by omitting some constituent elements (forexample, the temperature sensor unit and the buffer circuit) or addingother constituent elements thereto.

The resonator XTAL is, for example, a piezoelectric resonator such as aquartz crystal resonator. The resonator XTAL may be an oven typeoscillator (OCXO) provided in a thermostatic tank. The resonator XTALmay be a resonator (an electromechanical resonator or an electricalresonance circuit). As the resonator XTAL, a piezoelectric resonator, asurface acoustic wave (SAW) resonator, a microelectromechanical system(MEMS) resonator, and the like may be used. As a substrate metal of theresonator XTAL, a piezoelectric single crystal of quartz crystal,lithium tantalate, or lithium niobate, a piezoelectric material such aspiezoelectric ceramics of lead zirconate titanate or the like, or asilicon semiconductor material may be used. The resonator XTAL may beexcited due to a piezoelectric effect, and may be excited by usingelectrostatic driving based on a Coulomb force.

The temperature sensor unit 10 outputs the temperature detection voltageVTD. Specifically, a temperature-dependent voltage which changesaccording to the temperature of the environment (circuit device) isoutput as the temperature detection voltage VTD. A specificconfiguration example of the temperature sensor unit 10 will bedescribed later.

The A/D conversion unit 20 performs A/D conversion on the temperaturedetection voltage VTD from the temperature sensor unit 10 so as tooutput the temperature detection data DTD. For example, the digitaltemperature detection data DTD (A/D conversion result data)corresponding to an A/D conversion result of the temperature detectionvoltage VTD is output. As an A/D conversion mode of the A/D conversionunit 20, as described above, the normal operation mode and the highspeed mode may be used in a switching manner, and details thereof willbe described later.

The digital signal processing unit 50 (DSP unit) performs various signalprocesses. For example, the digital signal processing unit 50(temperature compensation unit) performs a temperature compensationprocess on an oscillation frequency (a frequency of an oscillationsignal) on the basis of the temperature detection data DTD. Frequencycontrol data DDS of the oscillation frequency is output. Specifically,the digital signal processing unit 50 performs a temperaturecompensation process for making the oscillation frequency constant onthe basis of the temperature detection data DTD (temperature-dependentdata) which changes according to a temperature, coefficient data (dataregarding coefficients of an approximate function) for temperaturecompensation processing, even in a case where a temperature changes. Thedigital signal processing unit 50 may be implemented by an ASIC circuitsuch as gate arrays, and may be implemented by a processor and a programexecuted on the processor.

The oscillation signal generation circuit 140 generates an oscillationsignal SSC. For example, the oscillation signal generation circuit 140generates the oscillation signal SSC with an oscillation frequency whichis set on the basis of the frequency control data DDS, by using thefrequency control data DDS from the digital signal processing unit 50,and the resonator XTAL. As an example, the oscillation signal generationcircuit 140 causes the resonator XTAL to oscillate at an oscillationfrequency which is set on the basis of the frequency control data DDS,so as to generate the oscillation signal SSC.

The oscillation signal generation circuit 140 may be a circuit whichgenerates the oscillation signal SSC according to a direct digitalsynthesizer method. For example, the oscillation signal SSC with anoscillation frequency set on the basis of the frequency control data DDSmay be digitally generated by using an oscillation signal of theresonator XTAL (an oscillation source for a fixed oscillation frequency)as a reference signal.

The oscillation signal generation circuit 140 may include a D/Aconversion unit 80 and an oscillation circuit 150. However, aconfiguration of the oscillation signal generation circuit 140 is notlimited to such a configuration, and may be variously modified byomitting some constituent elements or adding other constituent elementsthereto.

The D/A conversion unit 80 performs D/A conversion on the frequencycontrol data DDS (output data from the processing unit) from the digitalsignal processing unit 50. The frequency control data DDS which is inputto the D/A conversion unit 80 is frequency control data (frequencycontrol code) obtained after the temperature compensation process isperformed by the digital signal processing unit 50. As a D/A conversiontype of the D/A conversion unit 80, a resistance string type (resistancedivision type) may be employed. However, a D/A conversion type is notlimited thereto, and various types such as a resistance ladder type(R-2R ladder type or the like), a capacitor array type, and a pulsewidth modulation type may be employed. The D/A conversion unit 80 mayinclude not only a D/A converter but also a control circuit, amodulation circuit, a filter circuit, or the like.

The oscillation circuit 150 generates the oscillation signal SSC byusing an output voltage VQ from the D/A conversion unit 80, and theresonator XTAL. The oscillation circuit 150 is connected to theresonator XTAL via first and second resonator terminals (resonatorpads). For example, the oscillation circuit 150 causes the resonatorXTAL (a piezoelectric resonator, a resonator, or the like) to oscillateso as to generate the oscillation signal SSC. Specifically, theoscillation circuit 150 causes the resonator XTAL to oscillate at anoscillation frequency at which the output voltage VQ of the D/Aconversion unit 80 is used as a frequency control voltage (oscillationcontrol voltage). For example, in a case where the oscillation circuit150 is a circuit (VCO) which controls oscillation of the resonator XTALthrough voltage control, the oscillation circuit 150 may include avariable capacitance capacitor (varicap or the like) whose capacitancevalue varies depending on a frequency control voltage.

As described above, the oscillation circuit 150 may be implemented by adirect digital synthesizer type circuit, and, in this case, anoscillation frequency of the resonator XTAL is used as a referencefrequency and is different from an oscillation frequency of theoscillation signal SSC.

The buffer circuit 160 buffers the oscillation signal SSC generated bythe oscillation signal generation circuit 140 (oscillation circuit 150),and outputs a buffered signal SQ. In other words, buffering forsufficiently driving an external load is performed. The signal SQ is,for example, a clipped sine wave signal. However, the signal SQ may be arectangular wave signal. Alternatively, the buffer circuit 160 may be acircuit which can output both of a clipped sine wave signal and arectangular wave signal as the signal SQ.

FIG. 5 is a diagram illustrating an example of frequency deviation of anoscillation frequency due to the temperature of the resonator XTAL (ATresonator or the like). The digital signal processing unit 50 performs atemperature compensation process for making an oscillation frequency ofthe resonator XTAL having temperature characteristics as illustrated inFIG. 5 constant regardless of a temperature.

Specifically, the digital signal processing unit 50 performs atemperature compensation process so that output data (temperaturedetection data DTD) of the A/D conversion unit 20 and input data(frequency control data) of the D/A conversion unit 80 have acorrespondence relationship as illustrated in FIG. 6. The correspondencerelationship (frequency correction table) illustrated in FIG. 6 may beacquired according to a technique in which, for example, an oscillatorprovided with the circuit device is put into a thermostatic tank, andinput data (DDS) of the D/A conversion unit 80 and output data (DTD) ofthe A/D conversion unit 20 are monitored.

Coefficient data of an approximate function used for temperaturecompensation for realizing the correspondence relationship illustratedin FIG. 6 is stored in a memory unit (nonvolatile memory) of the circuitdevice. The digital signal processing unit 50 performs a calculationprocess on the basis of the coefficient data read from the memory unitand the temperature detection data DTD from the A/D conversion unit 20,and thus realizes a temperature compensation process for making anoscillation frequency of the resonator XTAL constant regardless of atemperature.

The temperature detection voltage VTD from the temperature sensor unit10 has, for example, negative temperature characteristics as will bedescribed later. Therefore, temperature dependency of an oscillationfrequency of the resonator XTAL illustrated in FIG. 5 can be compensatedfor as a result of being canceled out by using the temperaturecompensation characteristics as illustrated in FIG. 6.

3. A/D Conversion Unit

Next, the A/D conversion unit 20 will be described in detail.Specifically, a configuration example of the A/D conversion unit 20 willbe described, and then each of the normal operation mode and the highspeed mode will be described.

3.1 Configuration Example

A configuration example of the A/D conversion unit 20 is the same asillustrated in FIG. 2. As illustrated in FIG. 2, the A/D conversion unit20 includes the processing portion 23, the register portion 24, the D/Aconverter 26 (a DACE and a DACF), and the comparison portion 27. The A/Dconversion unit 20 may include a temperature sensor unit amplifier 28.The processing portion 23 and the register portion 24 are provided as alogic section 22, and the D/A converter 26, the comparison portion 27,and the temperature sensor unit amplifier 28 are provided as an analogsection 25.

The register portion 24 stores result data such as intermediate resultdata or final result data of the A/D conversion. The register portion 24corresponds to, for example, a successive comparison result register ina successive comparison method. The D/A converter 26 (the DACE and theDACF) performs D/A conversion on the result data from the registerportion 24. Various well-known D/A converters may be employed as theDACE or the DACF. The comparison portion 27 compares an output voltage(D/A conversion voltage VDAC) from the D/A converter 26 with thetemperature detection voltage VTD (a voltage amplified by thetemperature sensor unit amplifier 28). The comparison portion 27 may beimplemented by, for example, a chopper type comparator. The processingportion 23 performs a determination process on the basis of a comparisonresult in the comparison portion 27, so as to perform a process ofupdating the result data in the register portion 24. The finaltemperature detection data DTD obtained through the update process isoutput from the A/D conversion unit 20 as a result of A/D conversion ofthe temperature detection voltage VTD. With this configuration, A/Dconversion can be realized according to the normal operation mode, thehigh speed mode, or a general successive comparison method.

Here, the intermediate result data and the final result data are digitaldata stored in the register portion 24. The final result datacorresponds to a single A/D conversion result (the temperature detectiondata DTD in a case of a temperature), and the intermediate result datais data obtained in the middle of obtaining the final result data. Forexample, in an example which will be described later with reference toFIG. 15, both of DB and DO are included in result data, but the DBcorresponds to intermediate result data. With respect to the DO, a valuewhen a process illustrated in FIG. 15 is completed corresponds to finalresult data, but a value during the process illustrated in FIG. 15corresponds to intermediate result data. In a case of the normaloperation mode, data obtained by subtracting (adding) 1LSB from (to) theprevious final result data corresponds to intermediate result data, anddata obtained through a determination process corresponds to finalresult data.

The D/A converter 26 performs D/A conversion on the result data havingundergone the update process in the processing portion 23. Consequently,the result data having undergone the update process can be used as acomparison target with the temperature detection voltage VTD in the nextcomparison process.

In other words, a cycle is repeated in which a determination process isperformed on the basis of a comparison result, an update process isperformed on result data on the basis of the determination process, andthe result data having undergone the update process is used for the nextcomparison process, and thus the temperature detection data DTD can beappropriately updated.

Specifically, the comparison portion 27 may compare the D/A conversionvoltage VDAC obtained by the D/A converter 26 converting the previousresult data, with the temperature detection voltage VTD, and theprocessing portion 23 may perform a determination process on the basisof a comparison result thereof and perform an update process of updatingthe result data in a range of k×LSB or less. This corresponds to thenormal operation mode which will be described later. Since the updatedresult data is treated as the “previous temperature detection data DID”in a case where the second next timing is used as a reference, the D/Aconverter 26 performs a process of performing D/A conversion on theresult data so as to output a D/A conversion result to the comparisonportion 27. This cycle is repeated, and thus the temperature detectiondata DTD (final result data) can be updated in the range of k×LSB orless in the normal operation mode.

FIG. 7A illustrates a configuration example of the comparison portion27. The comparison portion 27 includes a first switch S1 to which an A/Dconversion voltage which is a result of the result data in the registerportion 24 being D/A-converted by the D/A converter 26 is input; asecond switch S2 to which the temperature detection voltage VTD isinput; a capacitor C whose one end (input terminal Nin) is connected tothe switches S1 and S2; a transistor Tr whose gate terminal is connectedto the other end of the capacitor C; a third switch S3 provided betweenthe gate terminal and a drain terminal of the transistor Tr; and acurrent source IS provided between the drain terminal of the transistorTr and a high potential side power source terminal. A source terminal ofthe transistor Tr is connected to a low potential side power sourceterminal (ground). An output terminal Nout is connected to the drainterminal of the transistor Tr, and an output voltage Vout is output fromthe output terminal Nout.

The comparison portion 27 has two modes such as a sample mode and acomparator mode. In the sample mode, the switch S1 is set to be turnedoff, and the switches S2 and S3 are set to be turned on. FIG. 7B is aschematic diagram illustrating a state in the sample mode. In this case,since a gain of an inverter formed of the current source IS and thetransistor Tr becomes 1, an output voltage Vout1 in the sample mode isobtained according to the following Equation (1). In the followingEquation (1), Vc indicates a potential difference between both ends ofthe capacitor C, and Vth indicates a threshold voltage of the transistorTr.

Vout1=Vth=(VTD+Vc)  (1)

After the sample mode is performed, the comparison portion 27transitions to the comparator mode. In the comparator mode, the switchS1 is set to be turned on, and the switches S2 and S3 are set to beturned off. FIG. 7C is a schematic diagram illustrating a state in thecomparator mode. In a case where a gain of the inverter is set to −Gx,an output voltage Vout2 in the comparator mode is obtained according tothe following Equation (2).

Vout2=−Gx×{(VDAC+Vc)−Vth}=−Gx(VDAC−VTD)  (2)

As mentioned above, turning-on and turning-off of the transistor Tr aredetermined according to a magnitude relationship between VTD and VDAC.Specifically, if the D/A conversion voltage VDAC is higher than thetemperature detection voltage VTD, the transistor Tr is turned on, andthus the output voltage Vout becomes a low potential side power sourcevoltage (for example, the ground). Conversely, if the D/A conversionvoltage VDAC is lower than the temperature detection voltage VTD, thetransistor Tr is turned off, and thus the output voltage Vout becomes ahigh potential side power source voltage (for example, VDD). Asmentioned above, the temperature detection voltage VTD and the D/Aconversion voltage VDAC can be compared with each other on the basis ofan output voltage in the comparator mode.

FIG. 8 is a specific waveform diagram in the comparison portion 27. Vcomindicates a control voltage for controlling the first switch S1, andVsmp indicates a control voltage for controlling the second switch S2and the third switch S3. A corresponding switch is turned on in a highlevel of Vcom and Vsmp, and a corresponding switch is turned off in alow level thereof. Vin indicates an input voltage (a voltage of theinput terminal Nin) of the chopper circuit, and Vout indicates an outputvoltage.

A1 in FIG. 8 is a period corresponding to the sample mode, and, in thisperiod, Vsmp has a high level, and Vcom has a low level, and thus theswitch S1 is set to be turned off, and the switches S2 and S3 are set tobe turned on. In this state, the temperature detection voltage VTD isinput so that electric charge is gradually accumulated in the capacitorC, and the input voltage Vin becomes a voltage corresponding to VTD andVc in a stable state. As can be seen from A2 in FIG. 8, since thecapacitor C is not immediately charged, if a period of the sample modeis excessively short, the voltage Vc does not have a value correspondingto the temperature detection voltage VTD, and thus accuracy is reduced.

A3 in FIG. 8 is a period corresponding to the comparator mode, and, inthis period, Vcom has a high level, and the Vsmp has a low level, andthus the switch S1 is set to be turned on, and the switches S2 and S3are set to be turned off. In this state, the input voltage Vin becomesthe D/A conversion voltage VDAC. In the example illustrated in FIG. 8,since D/A conversion voltage VDAC is lower than the temperaturedetection voltage VTD, the output voltage Vout gradually increases, andbecomes the high potential side power source voltage in a stable state.

In a case where the output voltage Vout is determined as being the highpotential side power source voltage (or a voltage close thereto), theprocessing portion 23 performs up determination that the temperaturedetection voltage VTD is higher than the D/A conversion voltage VDAC.

As can be seen from A4 in FIG. 8, since the output voltage Vout does notimmediately change to the high potential side power source voltage, if aperiod of the comparator mode is excessively short, the output voltageVout does not have a value corresponding to a relationship between thetemperature detection voltage VTD and the D/A conversion voltage VDAC,and thus accuracy is reduced. For example, unless a period having alength in which the output voltage Vout changes to the extent of beingclearly differentiated from the output voltage Vout in a case ofVDAC>VTD (in a case of A6 which will be described later) is provided,the determination accuracy is reduced. As can be seen from comparisonbetween A2 and A4 in FIG. 8, the time required for a circuit state to bestabilized in the comparator mode is longer than in the sample mode.Thus, a period set in the comparator mode is preferably longer than aperiod set in the sample mode.

In the technique of the present embodiment, a comparison process isperformed on the temperature detection voltage VTD at a predeterminedtiming by using at least two D/A conversion voltages VDAC. The periodsA1 and A3 correspond to a comparison process using the first D/Aconversion voltage VDAC. After the period A3 is finished, a comparisonprocess is performed by using the temperature detection voltage VTD andthe second D/A conversion voltage VDAC. The second comparison processcorresponds to the periods A5 and A6.

A5 is a period of the sample mode in which electric charge correspondingto the temperature detection voltage VTD is accumulated in the samemanner as the period A1. The same temperature detection voltage VTD istreated in the periods A1 and A5, and, thus, ideally, the chargingvoltage Vc of the capacitor C is also maintained to be constant in thecomparator mode. Therefore, the sample mode in the period A5 may beunnecessary, and thus the period A5 may be actually omitted. However,turning-on and turning-off of the analog switches (S1 to S3) areperformed during switching between the sample mode and the comparatormode, and thus electric charge leakage may occur. In the exampleillustrated in FIG. 8, a probability of the electric charge leakage istaken into consideration, and the period A5 in which an operation isperformed in the sample mode again is also provided during the secondcomparison process.

In the same manner as in the period A3, also in a period A6, Vcom has ahigh level, Vsmp has a low level, and the D/A conversion voltage VDAC isinput. However, the input D/A conversion voltage VDAC is a voltageobtained by performing D/A conversion on digital data (a value obtainedby adding 1LSB as will be described later in the normal operation mode)which is different from that in the period A3, and thus a value of theinput voltage Vin differs in the periods A3 and A6.

In the example illustrated in FIG. 8, since D/A conversion voltage VDACis higher than the temperature detection voltage VTD in the period A6,the output voltage Vout gradually decreases, and becomes the lowpotential side power source voltage in a stable state. In a case wherethe output voltage Vout is determined as being the low potential sidepower source voltage (or a voltage close thereto), the processingportion 23 performs down determination that the temperature detectionvoltage VTD is lower than the D/A conversion voltage VDAC.

The processing portion 23 may determine a value of the outputtemperature detection data DTD according to a combination of the updetermination and the down determination. A specific digital value usedfor generation of the D/A conversion voltage VDAC or a specifictechnique of determining the temperature detection data DTD will bedescribed later with respect to each of the normal operation mode andthe high speed mode.

3.2 Normal Operation Mode

The normal operation mode is a technique for minimizing a defect causedby a rapid change in A/D conversion result data, for example, a defectcaused by frequency hopping. First, with reference to FIG. 9, adescription will be made of a communication error in a globalpositioning system (GPS) caused by frequency hopping.

A GPS satellite causes information regarding a satellite orbit or timeto be included in a navigation message illustrated in FIG. 9, andtransmits the information as a GPS satellite signal at a data rate of 50bps. Thus, a length of 1 bit is 20 msec (20 cycles of a PN code). Asingle navigation message is formed of a single master frame, and thesingle master frame is formed of 25 frames each including 1500 bits.

As illustrated in FIG. 9, the GPS satellite signal is modulated by usinga BPSK modulation method according to a bit value of the navigationmessage. Specifically, the navigation message undergoes BPSK modulationby being multiplied by a PN code (pseudo-random code) so as to spread aspectrum, and by multiplying a signal whose spectrum is spread by acarrier wave (1575.42 MHz). FIG. 9 illustrates a PN code correspondingto a B1 portion of the navigation message, and illustrates a carrierwave corresponding to a B2 portion of the PN code. A phase of thecarrier wave is inverted as indicated by B3 at a timing at which a logiclevel of the PN code changes. A period of a single wavelength of thecarrier wave is about 0.635 ns. A GPS receiver receives a carrier waveof the navigation message modulated according to the BPSK modulationmethod, and performs a demodulation process on the received signal ofthe carrier wave so as to acquire the navigation message.

When the demodulation process on the received signal is performed, adetermination error occurs in the demodulation process unless a residualfrequency from the frequency (1575.42 MHz) of the carrier wave isincluded in 4 Hz/20 msec. In other words, a communication error due tofrequency hopping occurs unless a residual frequency from the frequencyof the carrier wave is included in 4 Hz in TP=20 msec which is a period(a cycle of the GPS navigation message) of 1 bit length of the GPSnavigation message.

Since a ratio of 4 Hz to 1575.42 MHz which is the frequency of thecarrier wave is about several ppb, the allowable drift frequency FD asillustrated in FIGS. 1B and 1C is also about several ppb.

For example, the GPS receiver sets a frequency of the carrier wave inthe demodulation process on the basis of an oscillation signal generatedby the circuit device (oscillator) of the present embodiment. Thus, adrift of an oscillation frequency of the oscillation signal is requiredto be included in ±FD in the period TP=20 msec. In the above-describedway, it is possible to prevent the occurrence of a determination errorin a demodulation process on a received signal of a GPS satellitesignal, and also to prevent the occurrence of a communication error(reception error).

However, in a digital type oscillator such as a DTCXO of the relatedart, a process in which a frequency drift is restricted to ±FD (aboutseveral ppb) in the period TP (20 msec) is not performed. Thus, there isa problem in that a communication error caused by a determination errorin a demodulation process occurs due to frequency hopping as illustratedin FIG. 1C.

In contrast, in the normal operation mode, a change in the temperaturedetection data DTD at output timings adjacent to each other isrestricted to k×LSB or less, and thus frequency hopping or the like canbe minimized.

FIG. 10 is a flowchart for explaining a process in the normal operationmode. Here, first, the description will be made by exemplifying a caseof k=1. If the normal operation mode is started, first, a code of theprevious temperature detection data DTD is D/A-converted by the D/Aconverter 26 so as to be used as the D/A conversion voltage VDAC (stepS101). As described above with reference to FIG. 8, a comparison processwith the temperature detection voltage VTD is performed in the samplemode (for example, A1) and the comparator mode (for example, A3), and aresult of an up determination or a down determination is acquired.

Next, 1LSB is added to a value in the resister portion, that is, a valueof the previous temperature detection data DTD, and D/A conversion isperformed on data as a result of the addition in the D/A converter 26,and an obtained result is used as the D/A conversion voltage VDAC (stepS102). As described above with reference to FIG. 8, a comparison processwith the temperature detection voltage VTD is performed in the samplemode (for example, A5) and the comparator mode (for example, A6), and aresult of an up determination or a down determination is acquired.

Through steps S101 and S102, the comparison portion 27 outputs a firstcomparison result which is a comparison result between the D/Aconversion voltage VDAC obtained by converting the temperature detectiondata DTD (previous final result data) at the previous output timing inthe D/A converter 26 and the temperature detection voltage VTD, andoutputs a second comparison result which is a comparison result betweenthe D/A conversion voltage VDAC obtained by converting second data inwhich 1LSB is added to the previous final result data in the D/Aconverter 26 and the temperature detection voltage VTD.

The processing portion 23 performs a determination process ofdetermining the present temperature detection data DTD on the basis ofthe two comparison process results (step S103).

First, in a case where it is determined that the temperature detectionvoltage VTD is higher than the D/A conversion voltage VDAC according toa determination process based on the first comparison result, that is,in a case where an up determination is performed, and a result of adetermination process based on the second comparison result is also anup determination, the present final result data is determined to be avalue obtained by adding 1LSB to the second data, that is, the previoustemperature detection data DTD (step S104).

The case where both of the two comparison processes are an updetermination corresponds to a state in which the present temperature issufficiently higher than a temperature at the previous output timing.Thus, the present temperature detection data DTD may be larger than theprevious temperature detection data DTD, and, here, since a change widthis 1LSB or less, and thus a value obtained by adding only 1LSB may beoutput.

In a case where it is determined that the temperature detection voltageVTD is lower than the D/A conversion voltage VDAC according to adetermination process based on the first comparison result, that is, ina case where a down determination is performed, and a result of adetermination process based on the second comparison result is also adown determination, the present final result data is determined to bedata obtained by subtracting 1LSB from the previous final detection data(step S105).

The case where both of the two comparison processes are a downdetermination corresponds to a state in which the present temperature issufficiently lower than a temperature at the previous output timing.Thus, the present temperature detection data DTD may be smaller than theprevious temperature detection data DTD, and, here, since a change widthis 1LSB or less, and thus a value obtained by subtracting only 1LSB maybe output.

A case where a result of a determination process based on the firstcomparison result is an up determination, and a result of adetermination process based on the second comparison result is a downdetermination corresponds to a state in which a temperature change isnot great. Thus, the present temperature detection data DTD ismaintained to have a value of the previous temperature detection dataDTD (step S106).

A case where a result of a determination process based on the firstcomparison result is a down determination, and a result of adetermination process based on the second comparison result is an updetermination corresponds to a state which does not normally occur. Thisis because the temperature detection voltage VTD in this case is lowerthan a predetermined voltage, and is higher than a voltage higher thanthe predetermined voltage, and such a voltage value does not exist.Since there is a concern that at least one of the first and secondcomparison processes may not be appropriately performed in this state,it is not preferable to change a value of the temperature detection dataDTD which is output through such an inappropriate determination.Therefore, in the present embodiment, in a case where a result of adetermination process based on the first comparison result is a downdetermination, and a result of a determination process based on thesecond comparison result is an up determination, the present temperaturedetection data DTD is maintained to have a value of the previoustemperature detection data DTD (step S106).

To summarize, in a case where one of a result of a determination processbased on the first comparison result and a result of a determinationprocess based on the second comparison result is an up determination,and the other thereof is a down determination, the processing portion 23may determine the present final result data (temperature detection dataDTD) to be the previous final result data.

In the above-described way, it is possible to output the temperaturedetection data DTD through two comparison processes, and thus tosuppress a rapid change in A/D conversion so as to perform an efficientprocess.

Two comparison processes are performed since k=1 here, but, processingcan also be similarly simplified in a case where k is 2 or greater. Inother words, a value of the previous temperature detection data DTDwhich has already been obtained can be used as it is for bits on the MSBside exceeding ±k×LSB, and thus there is an effect of being capable ofomitting a comparison process for determining the bits.

For example, the comparison portion 27 outputs a first comparison resultthrough comparison between the D/A conversion voltage VDAC obtained byconverting the previous final result data corresponding to thetemperature detection data DTD at the previous output timing in the D/Aconverter 26 and the temperature detection voltage VTD, and outputs asecond comparison result through comparison between the D/A conversionvoltage VDAC obtained by converting data in which the previous finalresult data is updated in the range of k×LSB or less in the D/Aconverter 26 and the temperature detection voltage VTD. The processingportion 23 may perform a determination process based on the firstcomparison result and the second comparison result, update the previousfinal result data in the range of k×LSB or less on the basis of thedetermination processes, and perform an update process of determiningthe updated data to be the present final result data.

It is determined whether or not the normal operation mode is finished,for example, a disable signal is input (step S107) after any one ofsteps S104 to S106 is performed, and, in a case where the disable signalis input in step S107, the normal operation mode is finished, and in acase where the disable signal is not input, the flow returns to stepS101 so that the process is continuously performed.

In the above description, a relationship illustrated in FIG. 11A isassumed as a relationship between predetermined digital data and ananalog signal (D/A conversion voltage) corresponding to the digitaldata. Specifically, in a case where a predetermined value D, D+1LSB, andD−1LSB are set as digital data, and analog signals (voltage values)corresponding to the respective items of the digital data are set toV_(D), V_(D+1), and V_(D−1), the relationship is that digital datacorresponding to a case where a voltage value is V_(D−1) to V_(D) isD−1LSB, digital data corresponding to a case where a voltage value isV_(D) to V_(D+1) is D, and digital data corresponding to a case where avoltage value is V_(D+1) to V_(D+2) is D+1LSB. In this example,boundaries between D and D±1LSB as output digital data are BO1 and BO2,that is, V_(D) and V_(D+1). Thus, as described above in steps S101 andS102, if the previous temperature detection data DTD and a valueobtained by adding 1LSB thereto are used as data (codes) which is inputto the D/A converter 26, it is possible to appropriately determinewhether, as the present temperature detection data DTD, the previousvalue is used without change or a value obtained by adding ±1LSB theretois used.

However, a relationship between an analog signal and digital data is notlimited to the relationship illustrated in FIG. 11A, and may be arelationship illustrated in FIG. 11B, for example. In FIG. 11B, digitaldata corresponding to a case where a voltage value is V_(D−2) to V_(D−1)is D−1LSB, digital data corresponding to a case where a voltage value isV_(D−1) to V_(D) is D, and digital data corresponding to a case where avoltage value is V_(D) to V_(D+1) is D+1LSB. In the example illustratedin FIG. 11B, boundaries between D and D±1LSB as output digital data areBO3 and BO4, that is, V_(D−1) and V_(D). Thus, the previous temperaturedetection data DTD and a value obtained by subtracting 1LSB therefrommay be used as data (codes) which is input to the D/A converter 26.

In this case, the comparison portion 27 may output a first comparisonresult through comparison between the D/A conversion voltage VDACobtained by converting the previous final result data corresponding tothe temperature detection data DTD at the previous output timing in theD/A converter 26 and the temperature detection voltage VTD, and outputsa second comparison result through comparison between the D/A conversionvoltage VDAC obtained by converting second data in which 1LSB issubtracted from the previous final result data in the D/A converter 26and the temperature detection voltage VTD.

Also in this case, a determination in the processing portion 23 may beperformed in the same manner. Ina case where a result of a determinationprocess based on the first comparison result is an up determination, anda result of a determination process based on the second comparisonresult is also an up determination, the processing portion 23 determinesdata obtained by adding 1LSB to the previous final result data to be thepresent final result data. In a case where a result of a determinationprocess based on the first comparison result is a down determination,and a result of a determination process based on the second comparisonresult is also a down determination, the processing portion 23determines the second data (the data obtained by subtracting 1LSB) to bethe present final result data.

In a case where one of a result of a determination process based on thefirst comparison result and a result of a determination process based onthe second comparison result is an up determination, and the otherresult is a down determination, the processing portion 23 may determinethe previous final result data to be the present final result data(temperature detection data DTD).

In FIG. 7A, two voltages such as the D/A conversion voltage VDAC and thetemperature detection voltage VTD are input to the comparison portion27, but the present embodiment is not limited thereto. As describedabove, in the normal operation mode, voltages as a comparison targetwith the temperature detection voltage VTD are two voltages including afirst D/A conversion voltage VDACA obtained by D/A-converting theprevious temperature detection data DTD and a second D/A conversionvoltage VDACB obtained by D/A-converting data in which 1LSB is added(subtracted) to (from) the previous temperature detection data DTD. Inother words, since the voltages VDACA and VDACB are preferably input tothe comparison portion 27, as illustrated in FIGS. 7A to 7C, a period inwhich the voltage VDACA is input and a period in which the voltage VDACBis input may be provided by using a single input path in a time divisionmanner, and a path for inputting the voltage VDACA and a path forinputting the voltage VDACB may be provided separately from each other.

FIG. 12 illustrates a configuration example of the comparison portion 27in a case where paths are provided separately from each other. Asillustrated in FIG. 12, the comparison portion 27 includes a fourthswitch S4 provided between the D/A converter 26 and one end of thecapacitor C, and the second D/A conversion voltage VDACB is input to theswitch S4 from the D/A converter 26. In this example, in the comparatormode (A3 in FIG. 8) in which the voltage VDACA and the voltage VTD arecompared with each other, the switch S1 may be set to be turned on, andthe switches S2 to S4 may be set to be turned off. In the comparatormode (A5 in FIG. 8) in which the voltage VDACB and the voltage VTD arecompared with each other, the switches S1 to S3 may be set to be turnedoff, and the switch S4 may be set to be turned on.

3.3 High Speed Mode

Next, the high speed mode will be described as a specific example of thefirst A/D conversion method. The high speed mode is a technique in whichthere is a difference between determination periods on the MSB side andthe LSB side as described above, and, thus, first, a specificdetermination period will be described.

As described above, since a bit on the MSB side corresponds to a greatvalue, a value (a voltage value as an analog signal in a case where D/Aconversion is performed) greatly changes according to whether the bit is0 or 1. Thus, a probability of the occurrence of a determination errorin a comparison process performed by the comparison portion 27 is loweron the MSB side than on the LSB side. However, a probability of theoccurrence of a determination error still remains, and, in the presentembodiment, a determination period for the MSB side is short, and thus aprobability of the occurrence of a determination error increases. Asdescribed above, the MSB side has high contribution to a value, and thushas considerable influence on the value in a case where a determinationerror occurs.

In the present embodiment, by taking into consideration this fact, adetermination result of the MSB side is corrected on the basis of adetermination result of the LSB side. A determination period for the LSBside is relatively long, and thus the determination accuracy can also beincreased. In other words, a result of the MSB side whose determinationaccuracy is relatively low is corrected on the basis of a result of theLSB side whose determination accuracy is high, and thus it is possibleto increase the accuracy of the temperature detection data DTD.Therefore, hereinafter, this correction technique will be described aswell.

The high speed mode is a technique similar to a successive comparisonmode, and allows a value of the temperature detection data DTD to bedetermined by one bit from the MSB side. However, as will be describedlater, in a case where correction of a result of the MSB side using aresult of the LSB side is performed through carry or borrow from alow-order bit, a possibility of carry and borrow has to be taken intoconsideration for all bits in the process by one bit, and thus thenumber of comparison processes increases. For example, in a case whereA/D conversion is performed in 15 bits, the presence or absence of carryand borrow has to be determined every time in processes of 14 bitsexcluding the most significant bit. In this case, even if the time for asingle comparison process is shortened, there is a concern that theeffect of achieving a high speed may be reduced.

Therefore, in order to efficiently achieve high speed while performingcarry or borrow from a low-order bit, it is preferable to reduce thenumber of determining the occurrence of carry (borrow). For example, ina case where a process is performed with 2 bits as one unit, 15 bits maybe partitioned into 8 bit ranges as will be described later, and adetermination of carry or borrow may be performed in 7 bit rangesexcluding the most significant 2 bits.

Therefore, hereinafter, as an example, a description will be made of acase where A/D conversion result data is partitioned into a plurality ofbit ranges with a predetermined bit width, and a bit value is determinedfrom the MSB side to the LSB side in each bit range. Particularly, in anexample which will be described later, the predetermined bit width is 2bits. Of course, the predetermined bit width here may be 3 or more bits,and, as described above, a process may be performed in the 1 bit unit.In FIG. 13A or 13B, as can be seen from the fact that the leastsignificant bit has one bit as the unit, all bit ranges do not have tobe set with the same bit width, and, for example, there may be amodification example in which different bit widths are set on the MSBside and the LSB side.

3.3.1 Difference Between Determination Periods on MSB Side and LSB Side

FIGS. 13A and 13B illustrate setting examples of determination periodsin the high speed mode. A transverse axis in FIG. 13A expresses time. Anupper part in FIG. 13A illustrates a mode, and, here, three modes (mode1 to mode 3) having different determination period lengths are set inthe high speed mode. A lower part in FIG. 13A illustrates adetermination target bit in A/D conversion result data of 15 bits.D[x:y] indicates data having a width of x−y+1 from a y-th bit to an x-thbit when counted from the least significant bit (LSB) in the A/Dconversion result data. Since the least significant bit is D [0], forexample, D[14:13] indicates 2 bits on the MSB side.

As can be seen from FIG. 13A, five partitions including D[14:13] toD[6:5] are set to the mode 1 in which a determination period is shortest(highest speed). In FIG. 13A, determination period lengths are differentin D[14:13] and other partitions, and this occurs from the viewpointthat carry and borrow are not taken into consideration in the mostsignificant bit, but there is no difference in the time required for onecomparison process.

D[4:3] is set to the mode 2 in which a determination period is longerthan the mode 1, and D[2:1] is set to the mode in which a determinationperiod is further longer. A determination period which is longer thanthat of the mode 3 is set for D[0] which is the least significant bit.As will be described later in detail, for example, a determination ofD[0] may be performed through the same process as in the above-describednormal operation mode.

FIG. 13B illustrates examples of setting specific determination periods.In the example illustrated in FIG. 13B, a period corresponding to twoclocks is set in the mode 1 for the highest speed when converted intoclocks used for A/D conversion, for both of the sample mode and thecomparator mode. A clock frequency may be variously set, and, is, forexample, 128 kHz.

With respect to D[14:13], two comparison processes may be performed inorder to determine data of the 2 bits as will be described later byusing step S201 and step S203 (or step S204) in FIG. 14A. In otherwords, D[14:13] requires a period corresponding to two clocks for eachof the first sample mode, the first comparator mode, the second samplemode, and the second comparator mode, and thus a period corresponding toa total of eight clocks is set as a determination period. If a clockfrequency is 128 kHz, a determination period of D[14:13] is 62.5 μsec.

With respect to four partitions including D[12:11] to D[6:5], threecomparison processes are required to be performed in order to determinedata of the 2 bits and the presence or absence of carry or borrow aswill be described later by using step S206, step S208, and step S209 (orstep S210 and step S211) in FIG. 14A. Therefore, each of the sample modeand the comparator mode is performed three times, and each periodcorresponds to two clocks, and thus a period corresponding to a total oftwelve clocks is set as a determination period. If a clock frequency is128 kHz, a determination period of each partition of D[12:11] to D[6:5]is 93.75 μsec.

With respect to D[4:3], a relatively long determination period is set inorder to increase the determination accuracy compared with the MSB side.In this case, as described with reference to the waveform diagram ofFIG. 8, contribution to the accuracy is higher in a case where a periodof the comparator mode is long than in a case where a period of thesample mode is long. Therefore, in the example illustrated in FIG. 13B,in the mode 2, a period corresponding to two clocks is allocated to thesample mode, and a period corresponding to six clocks is allocated tothe comparator mode. Also with respect to D[4:3], three comparisonprocesses are performed, and thus a period corresponding to a total oftwenty-four (=(2+6)×3) clocks is set as a determination period. If aclock frequency is 128 kHz, a determination period of D[4:3] is 187.5μsec.

A longer determination period is set for D [2:1]. In the exampleillustrated in FIG. 13B, in the mode 3, a period corresponding to twelveclocks is allocated to the comparator mode. As described above withreference to FIG. 8, a long sample mode can be expected to increase theaccuracy, and, thus, here, a period of the sample mode expands to fourclocks. Also with respect to D[2:1], three comparison processes areperformed, and thus a period corresponding to a total of forty-eight(=(4+12)×3) clocks is set as a determination period. If a clockfrequency is 128 kHz, a determination period of D[2:1] is 375 μsec.

A further longer determination period is set for D[0]. In the exampleillustrated in FIG. 13B, a period corresponding to twenty-four clocks isallocated to the comparator mode, and a period corresponding to eightclocks is allocated to the sample mode. As will be described later, thesame process as in the normal operation mode may be performed on D[0].In this case, two comparison processes are performed, and thus a periodcorresponding to a total of sixty-four (=(8+24)×2) clocks is set as adetermination period. If a clock frequency is 128 kHz, a determinationperiod of D[0] is 500 μsec.

In the description of the normal operation mode, a specificdetermination period has not been described, but, as an example, in thesame manner as for D[0], a period corresponding to twenty-four clocksmay be allocated to the comparator mode, and a period corresponding toeight clocks may be allocated to the sample mode. Of course, theprocessing content or a determination period of D[0] is not necessarilybe the same as in the normal operation mode, and may be variouslymodified.

As will be described later with reference to a flowchart of FIG. 14A,the high speed mode may be a mode in which D[14:1] is determined, andD[0] in the high seed mode is not determined. In this case, the normaloperation mode is performed by using, as an initial value, data of 15bits formed of D[14:1] determined in the high speed mode and D[0] in aninitial state (0 in an example which will be described later). There isa probability that a difference from an actual temperature may occur inthe least significant bit or bits in the vicinity thereof, but, thedifference is sufficiently small, and a great problem does not occur ina process of brining values close to each other by k×LSB in the normaloperation mode.

As can be seen from integration of conversion time in FIG. 13B, A/Dconversion with 15-bit accuracy can be performed, for example, within1.5 msec, and thus the request for being within 2 msec can be satisfied.

FIGS. 13A and 13B illustrate examples of setting determination periodsin the high speed mode, and various modification examples may occur. Forexample, the number of clocks allocated to the sample mode and thecomparator mode may be set to values which are different from those inFIG. 13B, and, as described above, the second and third sample modes maybe omitted. Alternatively, in a case where a determination result of theMSB side is corrected on the basis of a determination result of the LSBside, for example, carry or borrow is not taken into consideration, thenumber of comparison processes can be reduced for each partition ofD[12:11] to D[2:1], and thus it is possible to realize a higher speed.Here, a description has been made of a setting example in whichdetermination periods are changed in four stages such as the modes 1 to3 of the high speed mode and the normal mode, but, since determinationperiods are preferably different from each other on at least the MSBside and the LSB side, lengths of determination periods may be changedin two stages or three stages, and may be changed in five or morestages.

3.3.2 Correction of Determination Result of MSB Side Based onDetermination Result of LSB Side

FIG. 14A is a flowchart illustrating a flow of specific processes in thehigh speed mode. The high speed mode may be roughly classified into aportion (steps S201 to S205) for determining D[14:13] and a portion(steps S206 to S213) for determining D[12:1]. A difference between bothof the two portions is the presence or absence of carry and borrow withrespect to the MSB side. Hereinafter, details thereof will be described.

When the high speed mode is started, an intermediate value is set as A/Dconversion result data. For example, data such as “100000000000000” isset. First, in a determination of D[14:13], data in which “10” is set asthe 2 bits is D/A-converted so as to generate the D/A conversion voltageVDAC, a comparison process with the temperature detection voltage VTD isperformed (step S201), and the processing portion 23 performs adetermination process based on a result thereof (step S202). Valueswhich have already been determined or initial values may be set as other13 bits which are not determination targets. In the case of D[14:13],D[12:0] has not been determined, and initial values are all 0, and thusdata in a case where “10” is set as D[14:13] becomes “100000000000000”.

In step S202, in a case where it is determined that the voltage VTD ishigher than the voltage VDAC, that is, an up determination is performed,data in which “11” is set as D[14:13] is D/A-converted so as to generatethe D/A conversion voltage VDAC, and a comparison process with thetemperature detection voltage VTD is performed (step S203). On the otherhand, in step S202, in a case where it is determined that the voltageVTD is lower than the voltage VDAC, that is, a down determination isperformed, data in which “01” is set as D[14:13] is D/A-converted so asto generate the D/A conversion voltage VDAC, and a comparison processwith the temperature detection voltage VTD is performed (step S204).

The processing portion 23 determines a result in step S203 or S204 (stepS205). FIG. 14B is a diagram illustrating the specific determinationcontent. In a case where an up determination is performed at “10”, andan up determination is also performed at “11” (in a case where an updetermination is also performed after transition to step S203), D[14:13]is set to “11”. In a case where an up determination is performed at“10”, and a down determination is performed at “11” (in a case where adown determination is performed after transition to step S203), D[14:13]is set to “10”. In a case where a down determination is performed at“10”, and an up determination is performed at “01” (in a case where anup determination is performed after transition to step S204), D[14:13]is set to “01”. In a case where a down determination is performed at“10”, and a down determination is also performed at “01” (in a casewhere a down determination is performed after transition to step S204),D[14:13] is set to “00”.

The above-described process is the same as a general comparison process,and, particularly, carry and borrow may not be taken into consideration.

Next, transition to a determination process on a 2-bit LSB side occurs.First, data in which “10” is set as 2 bits of D[12:11] is D/A-convertedso as to generate the D/A conversion voltage VDAC, a comparison processwith the temperature detection voltage VTD is performed (step S206), andthe processing portion 23 performs a determination process based on aresult thereof (step S207). The values determined in step S205 are setas D[14:13], and initial values (here, “Os”) are set as D[10:0]. Forexample, in a case where D[14:13]=“11” is determined, data set in stepS206 is “111000000000000”.

In a case where an up determination is performed in step S207, data inwhich “11” is set as D[12:11] is D/A-converted so as to generate the D/Aconversion voltage VDAC, and a comparison process with the temperaturedetection voltage VTD is performed (step S208). However, in a case where“11” is set, even if it is determined that the voltage VTD is higherthan the voltage VDAC, as described in step S205, D[12:11] is onlydetermined as being “11”, and thus bits (here, D[14:13]) located furthertoward the MSB side cannot be corrected. Therefore, in order to takeinto consideration carry, a greater value than “11” is required to beset as D[12:11].

Specifically, data in which data in a state of carry occurring is set isD/A-converted so as to generate the D/A conversion voltage VDAC, and acomparison process with the temperature detection voltage VTD isperformed (step S209). In this example, D[12:11] may be set to “00”, anda value of D[13] may be increased by 1. For example, in a case where itis determined that D[14:13] is “01”, D[14:11] is set to “1000”. In otherwords, D[14:11] is set to “0111” in step S208, and “1000” which isgreater than the value is set in step S209.

In a case where a down determination is performed in step S207, data inwhich “01” is set as D[12:11] is D/A-converted so as to generate the D/Aconversion voltage VDAC, and a comparison process with the temperaturedetection voltage VTD is performed (step S210). However, in a case where“01” is set, even if it is determined that the voltage VTD is lower thanthe voltage VDAC, as described in step S205, D[12:11] is only determinedas being “00”, and thus correction (specifically, correction forreducing values) of bits located further toward the MSB side cannot beperformed. Therefore, in order to take into consideration borrow, asmaller value than “01” is required to be set as D[12:11]. Specifically,data in which “00” is set as D[12:11] is D/A-converted so as to generatethe D/A conversion voltage VDAC, and a comparison process with thetemperature detection voltage VTD is performed (step S211).

The processing portion 23 performs a determination based on comparisonresults in steps S208 and S209 or steps S210 and S211. FIG. 14C is adiagram illustrating the specific determination content. First, adescription will be made of a case where an up determination isperformed in step S207. In this case, comparison processes are performedin steps S208 and S209, and an up determination and a down determinationmay be performed in each step, and thus a total of four patterns may bepresent.

In a case where an up determination is performed in both of steps S208and S209, it can be seen that the temperature detection voltage VTD ishigh to the extent that carry is necessary. Therefore, values of 2 bitswhich are determination targets are determined to be “00”, and 1 isadded to one bit on the MSB side. In a case where a down determinationis performed in both of steps S208 and S209, it can be seen that thetemperature detection voltage VTD is located between a case where “10”is set and a case where “11” is set, and thus values of 2 bits which aredetermination targets are determined to be “10”.

In a case where an up determination is performed in step S208 and a downdetermination is performed in step S209, it can be seen that thetemperature detection voltage VTD is located between a case where “11”is set and a case where carry occurs, and thus values of 2 bits whichare determination targets are determined to be “11”.

In a case where a down determination is performed in step S208, and anup determination is performed in step S209, it can be seen that thiscase corresponds to an error state which does not normally occur. Theremay be various processes in a case of the error state, but, here, valuessuch as “11” are set. In other words, in steps S208 and S209, values aredetermined by taking into consideration three patterns such as (1) acase where an up determination is performed in both of the two steps,(2) a case where a down determination is performed in both of the twosteps, and (3) a case where an up determination is performed in one ofthe two steps, and a down determination is performed in the other step.

Next, a description will be made of a case where a down determination isperformed in step S207. In this case, comparison processes are performedin steps S210 and S211, and an up determination and a down determinationmay be performed in each step, and thus a total of four patterns may bepresent.

In a case where an up determination is performed in both of steps S210and S211, it can be seen that the temperature detection voltage VTD islocated between a case where “01” is set and a case where “10” is set,and thus values of 2 bits which are determination targets are determinedto be “01”. In a case where a down determination is performed in both ofsteps S210 and S211, it can be seen that the temperature detectionvoltage VTD is low to the extent that borrow is necessary. Therefore,values of 2 bits which are determination targets are determined to be“11”, and 1 is subtracted from one bit on the MSB side. For example, ina case where D[14:13]=“10”, and it is determined that borrow isnecessary in D[12:11], D[14:11] may be determined to be “0111”.

In a case where a down determination is performed in step S210, and anup determination is performed in step S211, it can be seen that thetemperature detection voltage VTD is located between a case where “00”is set and a case where “01” is set, and thus values of 2 bits which aredetermination targets are determined to be “00”.

In a case where an up determination is performed in step S210, and adown determination is performed in step S211, it can be seen that thiscase corresponds to an error state which does not normally occur. Theremay be various processes in a case of the error state, but, here, valuessuch as “00” are set. In other words, in steps S210 and S211, values aredetermined by taking into consideration three patterns such as (1) acase where an up determination is performed in both of the two steps,(2) a case where a down determination is performed in both of the twosteps, and (3) a case where an up determination is performed in one ofthe two steps, and a down determination is performed in the other step.

FIG. 15 illustrates examples of determining specific numerical values inthe high speed mode. A longitudinal axis expresses time, and a processis performed from the top of a table to the bottom thereof. DB[14:0]indicates D/A conversion target data (data which is a base of the D/Aconversion voltage VDAC) in the D/A converter 26, and DO[ 14:0]indicates A/D conversion result data with 15-bit accuracy as an outputin the high speed mode. A comparison process and a determination processare performed while variously changing values of the data DB, and thedata DO is updated on the basis of results thereof. The data DOcorresponds to A/D conversion result data at a timing at which a processup to a bit on the LSB side is completed. As described above, actualdetermination periods are different from each other on the MSB side andthe LSB side, but, in FIG. 15, for convenience, no difference isprovided in lengths on the longitudinal axis. In the data DB and DO, ashaded portion indicates a bit whose value is updated. As will bedescribed later by using C8, in a case where carry or borrow occurs, abit which is not a processing target may be an update target.

First, 2 bits on the MSB side are set to “10” (C1 which corresponds tostep S201), and a determination process is performed. Since an updetermination is performed here, the 2 bits are set to “11” next (C2which corresponds to step S203), and a determination process isperformed. Since an up determination is also performed here, DO[14:13]is determined to be “11” (C3), and transition to a determination ofD[12:11] occurs.

D[12:11] is first set to “10” (C4 which corresponds to step S206), and adetermination process is performed. Since a down determination isperformed here, “01” and “00” are set (C5 and C6 which correspond tosteps S210 and S211). In the example illustrated in FIG. 15, since an updetermination is performed in both of C5 and C6, DO [12:11] isdetermined to be “01” (C7), and transition to a determination of D[10:9]occurs.

Hereinafter, a description will be simplified. With respect to D[10:9],an up determination is performed for “10”, an up determination isperformed for one of “11” and “100 (carry)”, a down determination isperformed for the other thereof, and thus DO [10:9] is determined to be“11”. When “100” is set, carry occurs, and thus DB[12:11] becomes “10”(C8).

With respect to D[8:7], a down determination is performed for “10”, adown determination is performed for both of “01” and “00”, and borrowoccurs. Specifically, DO[8:7] is determined to be “11”, and D[10:9]determined to be “11” is subjected to subtraction, and thus D[10:9] iscorrected to “10”.

With respect to D[6:5], an up determination is performed for “10”, an updetermination is performed for both of “11” and “100 (carry)”, and carryoccurs. Specifically, DO [6:5] is determined to be “00”, and D[8:7]determined to be “11” is subjected to addition. In this case, carryspreads to the bits on the MSB side, and thus D[10:7] determined to be“1011” is corrected to “1100”.

With respect to D[4:3], an up determination is performed for “10”, adown determination is performed for both of “11” and “100 (carry)”, andDO [4:3] is determined to be “10”.

With respect to D[2:1], a down determination is performed for “10”, anup determination is performed for one of “01” and “00”, a downdetermination is performed for the other thereof, and thus DO[2:1] isdetermined to be “00”.

Since the normal operation mode is similarly applied to D[0], acomparison process in a case where DO[14:0] determined hitherto is setand a comparison process in a case where a value obtained by adding 1LSBto DO[14:0] is set may be performed, and a value may be updated within arange of 1LSB or less. In this example, an initial value of D[0] is 0,and borrow occurs in a case where 1LSB is subtracted. An initial valuemay be set to 1 if carry is desired to occur.

Alternatively, a modification example may occur in which an operation ischanged unlike the normal operation mode, first, “1” is set, “10(carry)” is set in a case of an up determination, and “0” is set in acase of a down determination. In this example, carry occurs if an updetermination is performed for both of the cases, and borrow occurs if adown determination is performed for both of the cases. In a case wherean up determination is performed for “1”, and a down determination isperformed for “10”, “1” may be determined, and in a case where a downdetermination is performed for “1”, and an up determination is performedfor “0”, “0” may be determined.

4. Other Configuration Examples in Case of DTCXO

As described above with reference to FIG. 4, the circuit deviceaccording to the present embodiment may include the A/D conversion unit20 provided with the D/A converter 26, the comparison portion 27, andthe processing portion 23; the digital signal processing unit 50 whichperforms a temperature compensation process on an oscillation frequencyon the basis of the temperature detection data DTD so as to outputfrequency control data of the oscillation frequency; and the oscillationsignal generation circuit 140 which generates an oscillation signalhaving an oscillation frequency set by the frequency control data byusing the frequency control data from the digital signal processing unit50 and the resonator XTAL.

In this example, frequency hopping may be minimized by restricting achange in the temperature detection data DTD which is output from theA/D conversion unit 20 to k×LSB or less. However, since the frequencyhopping is directly related to a change in an output from theoscillation signal generation circuit 140, a method of minimizingfrequency hopping in other configurations related to the output may alsobe used.

Hereinafter, a specific method will be described, and then configurationexamples of the digital signal processing unit 50 and the D/A conversionunit 80 realizing the method will be described. Configuration examplesof the temperature sensor unit 10 or the oscillation circuit 150 usedfor a DTCXO will also be described.

4.1 Technique of Minimizing Frequency Hopping Using Configurations Otherthan A/D Conversion Unit

In order to minimize frequency hopping, as illustrated in FIG. 16, in acase where a temperature changes from a first temperature T1 to a secondtemperature T2, the output voltage VQ which changes with a voltage widthsmaller than an absolute value of a difference voltage VDF between afirst control voltage VC1 and a second control voltage VC2 may outputfrom the D/A conversion unit 80 to the oscillation circuit 150.

An absolute value of the difference voltage VDF is, for example,|VC1−VC2|. In this case, VC1>VC2 may occur, and VC1<VC2 may occur. In acase where there is no temperature change, that is, VC1=VC2 (DTD1=DTD2),a change width of the output voltage VQ is naturally 0V, and thus theabsolute value of the difference voltage VDF matches the change width ofthe output voltage VQ. In other words, this case is an exceptional caseof the technique of the present embodiment.

For example, in a case where this technique is not employed, if atemperature changes from T1 to T2, the output voltage VQ from the D/Aconversion unit 80 changes with a step width of the difference voltageVDF as indicated by D1 in FIG. 16.

In contrast, in the technique of the present embodiment, the outputvoltage VQ from the D/A conversion unit 80 changes with a voltage widthVA smaller than the absolute value of the difference voltage VDF asindicated by D2 in FIG. 16. The voltage width VA is a change in theoutput voltage VQ, for example, in a period TDAC.

As indicated by D2 in FIG. 16, if the output voltage VQ from the D/Aconversion unit 80 is changed so that the voltage width VA< thedifference voltage VDF occurs, a change in an oscillation frequency fromthe oscillation circuit 150 is also considerably reduced compared with acase of D1. Therefore, the occurrence of frequency hopping as in FIG. 1Cis minimized, and thus it is possible to prevent the occurrence of acommunication error described in FIG. 9.

Specifically, in a case where a temperature changes from the firsttemperature to the second temperature, the digital signal processingunit 50 may output frequency control data DDS which changes in the unitof k′×LSB (changes by k′×LSB) from first data corresponding to the firsttemperature (first temperature detection data) to second datacorresponding to the second temperature (second temperature detectiondata). Here, k′ is an integer of 1 or greater. In addition, k′ may ormay not have the same value as k described above.

FIG. 17A is a diagram for explaining the technique of the presentembodiment in a frequency domain. For example, a frequency variablerange of an oscillation frequency from the oscillation signal generationcircuit 140 (the D/A conversion unit 80 and the oscillation circuit 150)is indicated by FR. For example, the oscillation signal generationcircuit 140 performs frequency adjustment as illustrated in FIG. 17Bwith respect to a temperature change, and a frequency variable range inthis frequency adjustment is FR. In other words, if a temperature changeenters the frequency variable range FR, a frequency can be adjusted bythe oscillation signal generation circuit 140.

An allowable frequency drift of an oscillation frequency in apredetermined period TP is indicated by FD. For example, in order toprevent the occurrence of a communication error described in FIG. 9, afrequency drift of an oscillation frequency in the predetermined periodTP is required to be included in the allowable frequency drift FD. If afrequency drift of an oscillation frequency is not included in theallowable frequency drift FD due to frequency hopping as illustrated inFIG. 1C, for example, a determination error occurs in a demodulationprocess of a received signal such as a GPS satellite signal, and thus acommunication error occurs.

A full-scale voltage of the D/A conversion unit 80 is indicated by VFS.The D/A conversion unit 80 can change the output voltage VQ within arange of the full-scale voltage VFS. The full-scale voltage VFScorresponds to a voltage range, for example, in a case where thefrequency control data DDS which is input to the D/A conversion unit 80changes in a full range of 0 to 2^(i).

A change width of the output voltage VQ at a D/A conversion interval(TDAC) of the D/A conversion unit 80 described in FIG. 16 is indicatedby VA. In this case, in the technique of the present embodiment, asillustrated in FIG. 17A, the following Expression (3) is established.

VA<(FD/FR)×VFS  (3)

Specifically, in a case where a resolution of the D/A conversion unit 80is i bits, the following Expression (4) is established.

1/2^(i)<(FD/FR)  (4)

If the technique of the present embodiment shown in the aboveExpressions (3) and (4) is adopted, as illustrated in FIG. 17A, afrequency drift of an oscillation frequency with respect to a nominaloscillation frequency fos (for example, about 16 MHz) can be caused tobe included in the allowable frequency drift FD (for example, aboutseveral ppb) in the predetermined period TP (for example, 20 msec).Consequently, it is possible to prevent the occurrence of acommunication error or the like due to frequency hopping described inFIG. 1C or the like.

For example, the right side in the above Expression (3), that is,(FD/FR)×VFS is obtained by multiplying a ratio (FD/FR) of the allowablefrequency drift FD to the frequency variable range FR by the full-scalevoltage VFS of the D/A conversion unit 80.

If the change width VA of the output voltage VQ at the D/A conversioninterval (TDAC) of the D/A conversion unit 80 is made smaller than(FD/FR)×VFS, as illustrated in FIG. 17A, in the frequency domain, afrequency drift with respect to the nominal oscillation frequency foscan be caused to be included in the allowable frequency drift FD. Inother words, the change width VA of the output voltage VQ from the D/Aconversion unit 80 can be reduced as indicated by D2 in FIG. 16, andthus it is possible to prevent the occurrence of frequency hopping.

For example, if the above Expression (3) is not established, asillustrated in FIG. 18, a frequency drift with respect to the nominaloscillation frequency fos is not included in the allowable frequencydrift FD, that is, frequency hopping occurs, and thus a communicationerror or the like described in FIG. 9 occurs. In the present embodiment,since the output voltage VQ from the D/A conversion unit 80 is changedso that the above Expression (3) is established, the occurrence offrequency hopping is minimized, and thus it is possible to prevent acommunication error or the like.

There may be various configurations of the D/A conversion unit 80 forrealizing the above-described technique. For example, the D/A conversionunit 80 may include a modulation circuit, a D/A converter, and a filtercircuit (LPF). The digital signal processing unit 50 outputs thefrequency control data DDS of i=m+n bits larger than n bits (forexample, 16 bits) which is a resolution of the D/A converter. Thedigital signal processing unit 50 performs floating-point calculation inorder to realize a digital signal process such as a temperaturecompensation process, and thus easily outputs the frequency control dataDDS of i=m+n bits larger than n bits (for example, n=16 bits).

The modulation circuit performs modulation (PWM modulation or the like)of data of n bits among the data of i=m+n bits on the basis of data of mbits among the data of i=m+n bits, so as to output modulated data DM ofn bits to the D/A converter. The filter circuit performs a smoothingprocess on an output voltage VDA which is obtained by the D/A converterperforming D/A conversion on the data DM, and thus it is possible torealize D/A conversion of a high resolution such as i=m+n bits (forexample, 20 bits).

4.2 Temperature Sensor Unit and Oscillation Circuit

FIG. 19A illustrates a first configuration example of the temperaturesensor unit 10. The temperature sensor unit 10 illustrated in FIG. 19Aincludes a current source IST, and a bipolar transistor TRT having acollector to which a current from the current source IST is supplied.The bipolar transistor TRT has a diode connection in which the collectoris connected to a base thereof, and thus the temperature detectionvoltage VTD having temperature characteristics is output to a node ofthe collector of the bipolar transistor TRT. The temperaturecharacteristics of the temperature detection voltage VTD are caused bytemperature dependency of a voltage between the base and an emitter ofthe bipolar transistor TRT. As illustrated in FIG. 19C, the temperaturedetection voltage VTD has negative temperature characteristics(first-order temperature characteristics with a negative gradient).

FIG. 19B illustrates a second configuration example of the temperaturesensor unit 10. In FIG. 19B, the current source IST illustrated in FIG.19A is implemented by a resistor RT. One end of the resistor RT isconnected to a node of a voltage power source, and the other end thereofis connected to a collector of a bipolar transistor TRT1. An emitter ofthe bipolar transistor TRT1 is connected to a collector of a bipolartransistor TRT2. Both of the bipolar transistors TRT1 and TRT2 havediode connections, and a voltage VTSQ which is output to a node of thecollector of the bipolar transistor TRT1 has negative temperaturecharacteristics (first-order temperature characteristics with a negativegradient) as illustrated in FIG. 19C.

The temperature sensor unit 10 illustrated in FIG. 19B is furtherprovided with an operational amplifier OPD, and resistors RD1 and RD2.The voltage VTSQ is input to a non-inverting input terminal of theoperational amplifier OPD, and one end of the resistor RD1 and one endof the resistor RD2 are connected to an inverting input terminalthereof. A reference temperature voltage VTA0 is supplied to the otherend of the resistor RD1, and the other end of the resistor RD2 isconnected to an output terminal of the operational amplifier OPD.

The operational amplifier OPD and the resistors RD1 and RD2 form anamplification amplifier which performs noninverting amplification of thevoltage VTSQ with the reference temperature voltage VAT0 as a reference.Consequently, the temperature sensor unit 10 outputs the temperaturedetection voltage VTD=VAT0+(1+RD2/RD1)×(VTSQ−VAT0). A referencetemperature T0 can be adjusted by adjusting the reference temperaturevoltage VAT0.

FIG. 20 illustrates a configuration example of the oscillation circuit150. The oscillation circuit 150 includes a current source IBX, abipolar transistor TRX, a resistor RX, a variable capacitance capacitorCX1, and capacitors CX2 and CX3.

The current source IBX supplies a bias current to a collector of thebipolar transistor TRX. The resistor RX is provided between thecollector and a base of the bipolar transistor TRX.

One end of the variable capacitance capacitor CX1 whose capacitance isvariable is connected to a resonator XTAL. Specifically, one end of thevariable capacitance capacitor CX1 is connected to one end of theresonator XTAL via a first resonator terminal (resonator pad) of thecircuit device. One end of the capacitor CX2 is connected to the otherend of the resonator XTAL. Specifically, one end of the capacitor CX2 isconnected to the other end of the resonator XTAL via a second resonatorterminal (resonator pad) of the circuit device. One end of the capacitorCX3 is connected to one end of the resonator XTAL, and the other endthereof is connected to the collector of the bipolar transistor TRX.

A base-emitter current caused by oscillation of the resonator XTAL flowsthrough the bipolar transistor TRX. If the base-emitter currentincreases, a current between the collector and the emitter of thebipolar transistor TRX increases, and thus a bias current which branchesto the resistor RX from the current source IBX is reduced so that acollector voltage VCX is lowered. On the other hand, if a currentbetween the base and the emitter of the bipolar transistor TRX isreduced, a collector-emitter current is reduced, and thus a bias currentwhich branches to the resistor RX from the current source IBX increasesso that the collector voltage VCX is heightened. The collector voltageVCX is fed back to the resonator XTAL via the capacitor CX3.

An oscillation frequency of the resonator XTAL has temperaturecharacteristics (for example, the temperature characteristicsillustrated in FIG. 5), and the temperature characteristics arecompensated by the output voltage VQ (frequency control voltage) fromthe D/A conversion unit 80. In other words, the output voltage VQ isinput to the variable capacitance capacitor CX1, and thus a capacitancevalue of the variable capacitance capacitor CX1 is controlled by theoutput voltage VQ. If the capacitance value of the variable capacitancecapacitor CX1 changes, a resonance frequency of an oscillation loopchanges, and thus a variation in an oscillation frequency due to thetemperature characteristics of the resonator XTAL is compensated for.The variable capacitance capacitor CX1 is implemented by, for example, avariable capacitance diode (varactor).

A configuration of the oscillation circuit 150 of the present embodimentis not limited to the configuration illustrated in FIG. 20, and may bevariously modified. For example, in FIG. 20, the capacitor CX1 is usedas a variable capacitance capacitor, but the capacitors CX2 or CX3 maybe used as a variable capacitance capacitor which is controlled by theoutput voltage VQ. Some of the plurality of capacitors CX1 to CX3 may beused as variable capacitance capacitors.

5. Modification Examples

Next, various modification examples of the present embodiment will bedescribed. FIG. 21 illustrates a configuration example of a circuitdevice according to a modification example of the present embodiment.The circuit device illustrated in FIG. 21 includes an A/D conversionunit 20 which performs A/D conversion on temperature detection voltageVTD from a temperature sensor unit 10 so as to output temperaturedetection data DTD, a digital signal processing unit 50 which performs atemperature compensation process on an oscillation frequency on thebasis of the temperature detection data DTD, so as to output frequencycontrol data DDS of the oscillation frequency, and an oscillation signalgeneration circuit 140.

In a case where a temperature changes from a first temperature to asecond temperature, the digital signal processing unit 50 outputs thefrequency control data DDS which changes in the unit of k′×LSB fromfirst data corresponding to the first temperature to second datacorresponding to the second temperature. The oscillation signalgeneration circuit 140 generates an oscillation signal SSC having anoscillation frequency set by the frequency control data DDS by using thefrequency control data DDS from the digital signal processing unit 50and the resonator XTAL.

In other words, in FIG. 21, the D/A conversion unit 80 is not providedin the oscillation signal generation circuit 140 unlike FIG. 4. Theoscillation frequency of the oscillation signal SSC generated by theoscillation signal generation circuit 140 is directly controlled on thebasis of the frequency control data DDS from the digital signalprocessing unit 50. In other words, the oscillation frequency of theoscillation signal SSC is controlled without using the D/A conversionunit.

For example, in FIG. 21, the oscillation signal generation circuit 140includes a variable capacitance circuit 142 and an oscillation circuit150. The oscillation signal generation circuit 140 is not provided withthe D/A conversion unit 80 illustrated in FIG. 4. The variablecapacitance circuit 142 is provided instead of the variable capacitancecapacitor CX1 illustrated in FIG. 20, and one end of the variablecapacitance circuit 142 is connected to one end of the resonator XTAL.

A capacitance value of the variable capacitance circuit 142 iscontrolled on the basis of the frequency control data DDS from thedigital signal processing unit 50. For example, the variable capacitancecircuit 142 is provided with a plurality of capacitors (capacitorarray), and a plurality of switch elements (switch array) each of whichallows turning-on and turning-off to be controlled on the basis of thefrequency control data DDS. Each of the plurality of switch elements iselectrically connected to each of the plurality of capacitors. Theplurality of switch elements are turned on or off, and thus the numberof capacitors whose one ends are connected to one end of the resonatorXTAL among the plurality of capacitors changes. Consequently, acapacitance value of the variable capacitance circuit 142 is controlled,and thus a capacitance value of one end of the resonator XTAL changes.Therefore, a capacitance value of the variable capacitance circuit 142can be directly controlled by the frequency control data DDS, and thusan oscillation frequency of the oscillation signal SSC can becontrolled.

As mentioned above, the technique of the present embodiment of changingthe frequency control data DDS in the unit of k′×LSB can be realized bythe configuration in which the oscillation signal generation circuit 140is not provided with the D/A conversion unit 80 as illustrated in FIG.21. Since the frequency control data DDS changes in the unit of k′×LSB,the same effect as in the technique of the present embodiment describedin FIGS. 16 to 17B can be achieved. Therefore, it is possible tominimize the occurrence of frequency hopping as illustrated in FIG. 1C,and thus to prevent the occurrence of a communication error or the likecaused by the frequency hopping. Also in the configuration illustratedin FIG. 21, the oscillation signal SSC may be generated according to adirect digital synthesizer method.

6. Oscillator, Electronic Apparatus, and Moving Object

FIG. 22A illustrates a configuration example of an oscillator 400provided with a circuit device 500 of the present embodiment. Asillustrated in FIG. 22A, the oscillator 400 includes a resonator 420 andthe circuit device 500. The resonator 420 and the circuit device 500 aremounted in a package 410 of the oscillator 400. A terminal of theresonator 420 is electrically connected to a terminal (pad) of thecircuit device 500 (IC) via an internal wiring of the package 410.

FIG. 22B illustrates a configuration example of an electronic apparatusincluding the circuit device 500 of the present embodiment. Theelectronic apparatus includes the circuit device 500 of the presentembodiment, the resonator 420 such as a quartz crystal resonator, anantenna ANT, a communication unit 510, a processing unit 520, and thelike. The electronic apparatus may include an operation unit 530, adisplay unit 540, and a storage unit 550. The oscillator 400 is formedof the resonator 420 and the circuit device 500. A configuration of theelectronic apparatus is not limited to the configuration illustrated inFIG. 22B, and may be variously modified by omitting some constituentelements or adding other constituent elements thereto.

As the electronic apparatus illustrated in FIG. 22B, there may bevarious apparatuses, for example, a GPS built-in clock, a wearableapparatus such as a biological information measurement apparatus (asphygmograph, a pedometer, or the like) or a head mounted display, aportable information terminal (mobile terminal) such as a smart phone, amobile phone, a portable game apparatus, a notebook PC, or a tablet PC,a content providing terminal which delivers content, a video apparatussuch as a digital camera or a video camera, and a network relatedapparatus such as a base station or a router.

The communication unit 510 (wireless circuit) performs a process ofreceiving data from an external apparatus or transmitting data to theexternal apparatus, via the antenna ANT. The processing unit 520performs a process of controlling the electronic apparatus, or variousdigital processes on data which is transmitted and received via thecommunication unit 510. The function of the processing unit 520 may berealized by, for example, a processor such as a microcomputer.

The operation unit 530 is used for a user to perform an input operation,and may be implemented by, for example, an operation button or a touchpanel display. The display unit 540 displays various pieces ofinformation, and may be implemented by, for example, a liquid crystaldisplay or an organic EL display. In a case where a touch panel displayis used as the operation unit 530, the touch panel display alsofunctions as the operation unit 530 and the display unit 540. Thestorage unit 550 stores data, and a function thereof may be realized bya semiconductor memory such as a RAM or a ROM, or a hard disk drive(HDD).

FIG. 22C illustrates an example of a moving object including the circuitdevice of the present embodiment. The circuit device (oscillator) of thepresent embodiment may be incorporated into, for example, various movingobjects such as a car, an aircraft, a motorbike, a bicycle, and a ship.The moving objects are pieces of equipment or instruments which areprovided with, for example, driving mechanisms such as engines ormotors, steering mechanisms such as handles or rudders, and variouselectronic apparatuses (on-vehicle apparatuses), and move on the ground,in the air, and in the sea. FIG. 22C schematically illustrates anautomobile 206 as a specific example of the moving object. Theoscillator (not illustrated) including the circuit device and theresonator of the present embodiment is incorporated into the automobile206. A control device 208 operates on the basis of a clock signalgenerated by the oscillator. The control device 208 controls hardnessand softness of a suspension or a brake of each car wheel 209, forexample, in accordance with the attitude of a car body 207. For example,automatic driving of the automobile 206 may be realized by the controldevice 208. An apparatus into which the circuit device or the oscillatorof the present embodiment is incorporated is not limited to the controldevice 208, and the circuit device or the oscillator of the presentembodiment may be incorporated into various apparatuses (on-vehicleapparatuses) provided in a moving object such as the automobile 206.

Although the present embodiment has been described as above in detail,it can be easily understood by a person skilled in the art that variousmodifications without substantially departing from the new matters andeffects of the invention are possible. Therefore, these modificationsare all included in the scope of the present disclosure. For example, inthe specification or the drawings, the terminologies which are mentionedat least once along with different terminologies which have broadermeanings or the same meanings may be replaced with the differentterminologies in any location of the specification or the drawings. Allcombinations of the present embodiment and the modification examples areincluded in the scope of the present disclosure. In addition,configurations or operations of the circuit device, the oscillator, theelectronic apparatus, or the moving object, A/D conversion techniques,D/A conversion techniques, frequency control data processing techniques,frequency control data outputting techniques in the processing portion,voltage outputting techniques in the D/A conversion unit, frequencycontrol techniques for the resonator, and the like, are also not limitedto the above description of the present embodiment, and may have variousmodifications.

The entire disclosure of Japanese Patent Application No. 2015-236403,filed Dec. 3, 2015 is expressly incorporated by reference herein.

What is claimed is:
 1. A circuit device comprising: a D/A converter; acomparator configured to compare a temperature detection voltage from atemperature sensor with a D/A conversion voltage from the D/A converter;and a processing circuit configured to execute a determination processon the basis of a comparison result from the comparator, and configuredto obtain temperature detection data as a result of A/D conversion ofthe temperature detection voltage based on the determination process,wherein, in a case where the minimum resolution of data in A/Dconversion is indicated by LSB, the temperature detection data at afirst output timing is set as first temperature detection data, and thetemperature detection data at a second output timing following the firstoutput timing is set as second temperature detection data, theprocessing circuit obtains the temperature detection data so that achange in the second temperature detection data with respect to thefirst temperature detection data is equal to or less than k×LSB (where kis an integer satisfying k<j; and j is an integer representing aresolution in A/D conversion).
 2. The circuit device according to claim1, further comprising: a register configured to store result dataincluding intermediate result data or final result data, wherein theprocessing circuit is configured to excute the determination process onthe basis of a comparison result from the comparator, and configured toexecute an update process on the result data on the basis of thedetermination process, and wherein the D/A converter executes D/Aconversion on the result data having undergone the update process. 3.The circuit device according to claim 2, wherein the comparator isconfigured to compare the D/A conversion voltage into which the D/Aconverter converts the result data with the temperature detectionvoltage, and wherein the processing circuit executes the determinationprocess based on the comparison result, and executes the update processof updating the result data in a range of k×LSB or less.
 4. The circuitdevice according to claim 2, wherein the comparator compares the D/Aconversion voltage into which the D/A converter converts the previousfinal result data corresponding to the temperature detection data at theprevious output timing with the temperature detection voltage so as tooutput a first comparison result, wherein the comparator compares theD/A conversion voltage into which the D/A converter converts data whichis obtained by updating the previous final result data in the range ofk×LSB or less, with the temperature detection voltage, so as to output asecond comparison result, and wherein the processing circuit executesthe determination process based on the first comparison result and thesecond comparison result, and executes the update process of updatingthe previous final result data in the range of k×LSB or less on thebasis of the determination process and of determining the updated datato be the present final result data.
 5. The circuit device according toclaim 2, wherein the comparison circuit compares the D/A conversionvoltage into which the D/A converter converts the previous final resultdata corresponding to the temperature detection data at the previousoutput timing with the temperature detection voltage so as to output afirst comparison result, wherein the comparator compares the D/Aconversion voltage into which the D/A converter converts second datawhich is obtained by adding 1LSB to the previous final result data, withthe temperature detection voltage, so as to output a second comparisonresult, wherein, in a case where a result of the determination processbased on the first comparison result is an up determination in which thetemperature detection voltage is higher than the D/A conversion voltage,and a result of the determination process based on the second comparisonresult is also the up determination, the processing circuit determinesthe second data to be the present final result data, and wherein, in acase where a result of the determination process based on the firstcomparison result is a down determination in which the temperaturedetection voltage is lower than the D/A conversion voltage, and a resultof the determination process based on the second comparison result isalso the down determination, the processing circuit determines dataobtained by subtracting 1LSB from the previous final result data, to bethe present final result data.
 6. The circuit device according to claim2, wherein the comparator compares the D/A conversion voltage into whichthe D/A converter converts the previous final result data correspondingto the temperature detection data at the previous output timing with thetemperature detection voltage so as to output a first comparison result,wherein the comparator compares the D/A conversion voltage into whichthe D/A converter converts second data which is obtained by subtracting1LSB from the previous final result data, with the temperature detectionvoltage, so as to output a second comparison result, wherein, in a casewhere a result of the determination process based on the firstcomparison result is an up determination in which the temperaturedetection voltage is higher than the D/A conversion voltage, and aresult of the determination process based on the second comparisonresult is also the up determination, the processing circuit determinesdata obtained by adding 1LSB to the previous final result data, to bethe present final result data, and wherein, in a case where a result ofthe determination process based on the first comparison result is a downdetermination in which the temperature detection voltage is lower thanthe D/A conversion voltage, and a result of the determination processbased on the second comparison result is also the down determination,the processing circuit determines the second data to be the presentfinal result data.
 7. The circuit device according to claim 5, wherein,in a case where one of a result of the determination process based onthe first comparison result and a result of the determination processbased on the second comparison result is the up determination, and theother thereof is the down determination, the processing circuitdetermines the previous final result data to be the present final resultdata.
 8. The circuit device according to claim 6, wherein, in a casewhere one of a result of the determination process based on the firstcomparison result and a result of the determination process based on thesecond comparison result is the up determination, and the other thereofis the down determination, the processing circuit determines theprevious final result data to be the present final result data.
 9. Thecircuit device according to claim 1, wherein an A/D conversion period isset so that a change amount of the temperature detection voltage in asingle A/D conversion period is equal to or less than a voltagecorresponding to k×LSB.
 10. The circuit device according to claim 2,wherein an A/D conversion period is set so that a change amount of thetemperature detection voltage in a single A/D conversion period is equalto or less than a voltage corresponding to k×LSB.
 11. The circuit deviceaccording to claim 1, further comprising: an A/D conversion unit thatincludes the D/A converter, the comparator, and the processing circuit;a digital signal processing circuit configured to execute a temperaturecompensation process on an oscillation frequency on the basis of thetemperature detection data, so as to output frequency control data ofthe oscillation frequency; and an oscillation signal generation circuitthat generates an oscillation signal having the oscillation frequencyset by the frequency control data by using the frequency control datafrom the digital signal processing circuit and a resonator.
 12. Thecircuit device according to claim 2, further comprising: an A/Dconversion unit that includes the D/A converter, the comparator, and theprocessing circuit; a digital signal processing circuit configured toexecute a temperature compensation process on an oscillation frequencybased on the temperature detection data, so as to output frequencycontrol data of the oscillation frequency; and an oscillation signalgeneration circuit that generates an oscillation signal having theoscillation frequency set by the frequency control data by using thefrequency control data from the digital signal processing circuit and aresonator.
 13. An oscillator comprising: the circuit device according toclaim 11; and the resonator.
 14. An oscillator comprising: the circuitdevice according to claim 12; and the resonator.
 15. An electronicapparatus comprising the circuit device according to claim
 1. 16. Anelectronic apparatus comprising the circuit device according to claim 2.17. An electronic apparatus comprising the circuit device according toclaim
 11. 18. A moving object comprising the circuit device according toclaim
 1. 19. A moving object comprising the circuit device according toclaim
 2. 20. A moving object comprising the circuit device according toclaim 11.